I have the following code to adress columns and rows in a dataframe in Python:
y_train = features.iloc[start:end] [[1]]
y_train_noDoppleBracket = features.iloc[start:end] [1]
y_train_noIloc = features [start:end] [[1]]
y_train_noIloc_noDoppleBracket = features [start:end] [1]
In the cases without doppleBrackets I get a series of size (300693,) and in the cases with dopplBrackets I get a dataframe of size (300693,1). This also holds for the iloc examples. However if I have a look at them in the Variable Explorer of Spyder, they look exactly the same. So is there a difference between them? And why do I get a dataframe when using dopple brackets while only getting a series when using single brackets?
I'd appreciate every comment.
Reminder: As I still do not understand whether there is a difference between them, I would like to remind you on my question (the comments to this question say yes, but in the variable explorer they look exactly the same). I'd be quite happy for your help.