Skip to content

Commit cac4e94

Browse files
committed
Pandas Tutorial 1
1 parent 4a56bb7 commit cac4e94

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Diff for: Pandas.ipynb

+11-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"metadata": {
55
"colab": {
66
"provenance": [],
7-
"authorship_tag": "ABX9TyNqmdYrshhrattYYIX+9xYy",
7+
"authorship_tag": "ABX9TyPYwBsVMurYCbI9fYJKVf6f",
88
"include_colab_link": true
99
},
1010
"kernelspec": {
@@ -77,8 +77,16 @@
7777
"\n",
7878
"# Selecting & Filtering Data (Selecting Columns)\n",
7979
"\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"
8290
],
8391
"metadata": {
8492
"colab": {

0 commit comments

Comments
 (0)