If I have a pandas DataFrame object, how can I just access the cell? In R, assuming my data.frame is called df, I can access the third and fourth column with
df[3,4]
What is the equivalent in python?
You can use iloc (to get by position):
df.iloc[3,4]
I recommend reading the document indexing section.
If you want to access a cell based on column and row labels, use at :
at
df.at["Year","Temperature"]
This will return the cell crossed by the Year row and the Temperature column.