Answers for "access data frame element by loc"

0

access data frame element by loc

In [24]: x = pd.DataFrame({'x': [1, 2, 3], 'y': [3, 4, 5]})

In [25]: x.iloc[1] = {'x': 9, 'y': 99}

In [26]: x
Out[26]: 
   x   y
0  1   3
1  9  99
2  3   5
Posted by: Guest on May-02-2020

Python Answers by Framework

Browse Popular Code Answers by Language