I understood the former one gives me a series whereas the letter gives a dataframe. What I couldn't get is its arguments. df[['column_name']] is giving dataframe. Is that the reason cuz I'm sending ['column_name'] an iterative as its data= parameter? I'm struggling how python is working here! My results are following:
df['Yil']=
bir     2021
ikki    2020
19      2019
18      2018
17      2017
16      2016
15      2015
10      2010
df[['Yil']]=
        Yil
bir     2021
ikki    2020
19      2019
18      2018
17      2017
16      2016
15      2015
10      2010
Name: Yil, dtype: int64 
 
     
    