This is my first post here or in any programming forum.
I have a data frame made this way:
d = {'col1': [1, 2], 'col2': [3, 4]}
df = pd.DataFrame(data=d)
This results in a dataframe that has two rows and two columns (maybe three, if you count the index column?). I want to call what is in the first row and first column, for example. Or, maybe I want to call the first entire row, the one with index 0.
How do I do this? Apparently I cannot use either
df(1,1)
df[1,1]
df(1,:)
...and so on.
I dont understand if this documentation(https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html) holds the solution or not, or if it says that it cannot be done. If it cannot be done, where does it say in the documentation?
I am really new to this, please have patience :)
/H