Skip to content

Commit 5bd1af6

Browse files
authored
Update Pandas - Delete Columns from DataFrame.ipynb
1 parent a097b55 commit 5bd1af6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Pandas/Pandas - Delete Columns from DataFrame.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@
174174
"cell_type": "markdown",
175175
"metadata": {},
176176
"source": [
177-
"### 1) to drop a single column\n",
178-
"df.drop('col_name', axis=1) \n",
177+
"### 1) to drop a single column\n, and saving it permanently ",
178+
"df.drop('col_name', axis=1,inplace =True) \n",
179179
"To save changes you must either set df = df.drop(), or add inplace=True."
180180
]
181181
},

0 commit comments

Comments
 (0)