How to get pandas dataframe when select only one column? In R there is drop = False for that
I think you are looking for something like index=df.index.
The question is a bit broad
How to get pandas dataframe when select only one column? In R there is drop = False for that.
We can use pd.DataFrame(df['breakfast']) or df[['breakfast']], but do we have smth like drop = False as it in R?
PS: press F for breakfast)