Answers for "function python change the last element of dataframe"

2

pandas change last row

a.iloc[-1, a.columns.get_loc('a')] = 77
>>> a
   a  b  c
0  1  2  3
1  4  5  6
2 77  8  9
Posted by: Guest on July-17-2020

Code answers related to "function python change the last element of dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language