Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to get a value from a cell of a dataframe?

Welcome to EasyCoding with Ammara
Subscribe My Coding Channel:
https://www.youtube.com/channel/UC8UsfNYmbKiRJvI9ZhhApEw?view_as=subscriber

Subscribe my personal YouTube Channel:
https://www.youtube.com/channel/UCa93R2oNQMuX0fOKa9eV4zg?view_as=subscriber

Let's Start
Program:

data=pd.DataFrame({'a':[1,2,3,4],
                 'b':[2,33,4,3]})
print(data)
data.iloc[0]['a']

OUTPUT:


 a   b
0  1   2
1  2  33
2  3   4
3  4   3

1



This post first appeared on AR Programming, please read the originial post: here

Share the post

How to get a value from a cell of a dataframe?

×

Subscribe to Ar Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×