Skip to content

Commit ad8dc3c

Browse files
committed
fix occupations 18
1 parent 4afecb3 commit ad8dc3c

File tree

2 files changed

+55
-47
lines changed

2 files changed

+55
-47
lines changed

01_Getting_&_Knowing_Your_Data/Occupation/Exercise_with_Solution.ipynb

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@
701701
},
702702
{
703703
"cell_type": "code",
704-
"execution_count": 14,
704+
"execution_count": 11,
705705
"metadata": {
706706
"collapsed": false
707707
},
@@ -712,7 +712,7 @@
712712
"21"
713713
]
714714
},
715-
"execution_count": 14,
715+
"execution_count": 11,
716716
"metadata": {},
717717
"output_type": "execute_result"
718718
}
@@ -730,7 +730,7 @@
730730
},
731731
{
732732
"cell_type": "code",
733-
"execution_count": 15,
733+
"execution_count": 12,
734734
"metadata": {
735735
"collapsed": false
736736
},
@@ -746,7 +746,7 @@
746746
"Name: occupation, dtype: int64"
747747
]
748748
},
749-
"execution_count": 15,
749+
"execution_count": 12,
750750
"metadata": {},
751751
"output_type": "execute_result"
752752
}
@@ -764,7 +764,7 @@
764764
},
765765
{
766766
"cell_type": "code",
767-
"execution_count": 16,
767+
"execution_count": 13,
768768
"metadata": {
769769
"collapsed": false
770770
},
@@ -829,7 +829,7 @@
829829
"max 73.000000"
830830
]
831831
},
832-
"execution_count": 16,
832+
"execution_count": 13,
833833
"metadata": {},
834834
"output_type": "execute_result"
835835
}
@@ -847,7 +847,7 @@
847847
},
848848
{
849849
"cell_type": "code",
850-
"execution_count": 17,
850+
"execution_count": 14,
851851
"metadata": {
852852
"collapsed": false,
853853
"scrolled": true
@@ -964,7 +964,7 @@
964964
"max 73.000000 NaN NaN NaN"
965965
]
966966
},
967-
"execution_count": 17,
967+
"execution_count": 14,
968968
"metadata": {},
969969
"output_type": "execute_result"
970970
}
@@ -982,7 +982,7 @@
982982
},
983983
{
984984
"cell_type": "code",
985-
"execution_count": 18,
985+
"execution_count": 15,
986986
"metadata": {
987987
"collapsed": false
988988
},
@@ -997,7 +997,7 @@
997997
"Name: occupation, dtype: object"
998998
]
999999
},
1000-
"execution_count": 18,
1000+
"execution_count": 15,
10011001
"metadata": {},
10021002
"output_type": "execute_result"
10031003
}
@@ -1015,7 +1015,7 @@
10151015
},
10161016
{
10171017
"cell_type": "code",
1018-
"execution_count": 19,
1018+
"execution_count": 16,
10191019
"metadata": {
10201020
"collapsed": false
10211021
},
@@ -1026,7 +1026,7 @@
10261026
"34.0"
10271027
]
10281028
},
1029-
"execution_count": 19,
1029+
"execution_count": 16,
10301030
"metadata": {},
10311031
"output_type": "execute_result"
10321032
}
@@ -1044,25 +1044,29 @@
10441044
},
10451045
{
10461046
"cell_type": "code",
1047-
"execution_count": 20,
1047+
"execution_count": 19,
10481048
"metadata": {
10491049
"collapsed": false
10501050
},
10511051
"outputs": [
10521052
{
10531053
"data": {
10541054
"text/plain": [
1055-
"7 1\n",
1055+
"11 1\n",
1056+
"10 1\n",
1057+
"73 1\n",
1058+
"66 1\n",
1059+
"7 1\n",
10561060
"Name: age, dtype: int64"
10571061
]
10581062
},
1059-
"execution_count": 20,
1063+
"execution_count": 19,
10601064
"metadata": {},
10611065
"output_type": "execute_result"
10621066
}
10631067
],
10641068
"source": [
1065-
"users.age.value_counts().tail(1) #7 years, only 1 occurrence"
1069+
"users.age.value_counts().tail() #7, 10, 11, 66 and 73 years -> only 1 occurrence"
10661070
]
10671071
}
10681072
],

0 commit comments

Comments
 (0)