Answers for "call for a last number in series python"

0

call for a last number in series python

print (df['col1'].iloc[-1])
3
print (df['col1'].iat[-1])
3
Posted by: Guest on August-01-2020
0

call for a last number in series python

print (df.iloc[-1, df.columns.get_loc('col1')])
3
print (df.iat[-1, df.columns.get_loc('col1')])
3
Posted by: Guest on August-01-2020

Code answers related to "call for a last number in series python"

Python Answers by Framework

Browse Popular Code Answers by Language