When using loc
df.loc[:]
= Dataframe
df.loc[int]
= Dataframe if you have more than one column and Series if you have only 1 column in the dataframe
df.loc[:, ["col_name"]]
= Dataframe if you have more than one row and Series if you have only 1 row in the selection
df.loc[:, "col_name"]
= Series
Not using loc
df["col_name"]
= Series
df[["col_name"]]
= Dataframe