I have a pandas dataframe df
that has a column with the name "datetime". Now I would like to get a specific value from it. I tried the solutions suggested here How to get a value from a cell of a dataframe? but I always get an "KeyError: 'datetime'"
Here is a screenshot of the dataframe
And here is what I tried:
print("df.at[5,'datetime']", df.at[5,"datetime"])
print("df.iloc['datetime', 5]", df.iloc[5]["datetime"])
Any idea, why I get this error and how to fix this problem?