File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 4
4
"metadata" : {
5
5
"colab" : {
6
6
"provenance" : [],
7
- "authorship_tag" : " ABX9TyNqmdYrshhrattYYIX+9xYy " ,
7
+ "authorship_tag" : " ABX9TyPYwBsVMurYCbI9fYJKVf6f " ,
8
8
"include_colab_link" : true
9
9
},
10
10
"kernelspec" : {
77
77
" \n " ,
78
78
" # Selecting & Filtering Data (Selecting Columns)\n " ,
79
79
" \n " ,
80
- " print(df['Name']) # Selecting a single column\n " ,
81
- " print(df[['Name', 'Age']]) # Selecting multiple columns\n "
80
+ " # print(df['Name']) # Selecting a single column\n " ,
81
+ " # print(df[['Name', 'Age']]) # Selecting multiple columns\n " ,
82
+ " \n " ,
83
+ " \n " ,
84
+ " # You can drop a column from the DataFrame using the .drop() method.\n " ,
85
+ " # df.drop(columns=['City'], inplace=True)\n " ,
86
+ " \n " ,
87
+ " # If you want to remove multiple columns, pass a list:\n " ,
88
+ " # df.drop(columns=['City', 'Salary'], inplace=True)\n " ,
89
+ " \n "
82
90
],
83
91
"metadata" : {
84
92
"colab" : {
You can’t perform that action at this time.
0 commit comments