Skip to content

Commit 64dc4cb

Browse files
committed
updated pandas cheat sheet
1 parent 6efc53b commit 64dc4cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/.ipynb_checkpoints/PandasCheatSheet-checkpoint.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@
805805
"cell_type": "code",
806806
"collapsed": false,
807807
"input": [
808-
"# axis=1 means to apply the function for each row, but I prefer to use axis=\"columns\" instead\n",
808+
"# axis=1 means to apply the function for each row, but I prefer to use axis='columns' instead\n",
809809
"data['animal2'] = data.apply(meat2animal,axis=1)\n",
810810
"data"
811811
],
@@ -937,7 +937,7 @@
937937
"cell_type": "code",
938938
"collapsed": false,
939939
"input": [
940-
"data.drop('animal2', axis=\"columns\", inplace=True) # dropping/removing a column\n",
940+
"data.drop('animal2', axis='columns', inplace=True) # dropping/removing a column\n",
941941
"data"
942942
],
943943
"language": "python",

pandas/PandasCheatSheet.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@
805805
"cell_type": "code",
806806
"collapsed": false,
807807
"input": [
808-
"# axis=1 means to apply the function for each row, but I prefer to use axis=\"columns\" instead\n",
808+
"# axis=1 means to apply the function for each row, but I prefer to use axis='columns' instead\n",
809809
"data['animal2'] = data.apply(meat2animal,axis=1)\n",
810810
"data"
811811
],
@@ -937,7 +937,7 @@
937937
"cell_type": "code",
938938
"collapsed": false,
939939
"input": [
940-
"data.drop('animal2', axis=\"columns\", inplace=True) # dropping/removing a column\n",
940+
"data.drop('animal2', axis='columns', inplace=True) # dropping/removing a column\n",
941941
"data"
942942
],
943943
"language": "python",

0 commit comments

Comments
 (0)