Professional Documents
Culture Documents
01 - Pandas - Getting Started With Data Analysis
01 - Pandas - Getting Started With Data Analysis
import pandas as pd
In [3]:
df = pd.read_csv('../data/survey_results_public.csv')
In [5]:
df.shape
Out[5]:
(83439, 48)
In [6]:
df.info()
<class 'pandas.core.frame.DataFrame'>
In [7]:
pd.set_option('display.max_columns', 100)
In [8]:
df
Out[8]:
Seconda
Independent
I am a school (e.g
contractor,
0 1 developer by Slovakia NaN NaN America
freelancer, or
profession high schoo
self-em...
G
I am a Bachelor
student who Student, full- degre
1 2 Netherlands NaN NaN
is learning to time (B.A., B.S
code B.Eng., etc
I am not
Bachelor
primarily a
Student, full- Russian degre
2 3 developer, NaN NaN
time Federation (B.A., B.S
but I write
B.Eng., etc
co...
Master
I am a degre
Employed
3 4 developer by Austria NaN NaN (M.A., M.S
full-time
profession M.Eng
MBA, etc
United Master
Independent
I am a Kingdom of degre
contractor,
4 5 developer by Great NaN England (M.A., M.S
freelancer, or
profession Britain and M.Eng
self-em...
Northern I... MBA, etc
Bachelor
I am a United
Employed degre
83434 83435 developer by States of Texas NaN
full-time (B.A., B.S
profession America
B.Eng., etc
Independent Bachelor
I am a
contractor, degre
83435 83436 developer by Benin NaN NaN
freelancer, or (B.A., B.S
profession
self-em... B.Eng., etc
Seconda
I am a United school (e.g
Employed New
83436 83437 developer by States of NaN America
full-time Jersey
profession America high schoo
G
Bachelor
I am a
Employed degre
83437 83438 developer by Canada NaN NaN
full-time (B.A., B.S
profession
B.Eng., etc
I am a Profession
Employed
83438 83439 developer by Brazil NaN NaN degree (JD
full-time
profession MD, etc
In [9]:
df_schema = pd.read_csv('../data/survey_results_schema.csv')
pd.set_option('display.max_rows', 100)
In [10]:
df_schema
Out[10]:
<div><span style="font-
0 QID16 S0 False DB TB
size:19px;"><strong>Hel...
<span style="font-size:22px;
2 QID1 S1 False DB TB
font-family: aria...
<span style="font-size:22px;
8 QID190 S2 False DB TB
font-family: aria...
<span style="font-size:22px;
19 QID61 S3 False DB TB
font-family: aria...
Which <b>programming,
20 QID233 Language False Matrix Likert
scripting, and markup la...
Which <b>database
21 QID262 Database environments </b>have you False Matrix Likert
do...
Which <b>cloud
22 QID263 Platform platforms</b> have you done False Matrix Likert
ext...
Which <strong>web
23 QID264 Webframe frameworks </strong><span False Matrix Likert
st...
Which
25 QID275 ToolsTech <strong>tools</strong> have False Matrix Likert
you done ext...
Which <strong>development
26 QID274 NEWCollabTools False Matrix Likert
environments</strong...
<span style="font-size:22px;
29 QID91 S4 False DB TB
font-family: aria...
<span style="font-size:22px;
37 QID121 S5 False DB TB
font-family: aria...
Do you identify as
40 QID153 Trans False MC MAVR
transgender?
<span style="font-
45 QID131 S6 size:22px;"><strong>Final False DB TB
Qu...
In [11]:
df.head(40)
Out[11]:
Independent Se
I am a
contractor, sch
0 1 developer by Slovakia NaN NaN
freelancer, or Americ
profession
self-em... sch
I am a Ba
student who Student, full- degre
1 2 Netherlands NaN NaN
is learning to time B.S.,
code
I am not
Ba
primarily a
Student, full- Russian degre
2 3 developer, NaN NaN
time Federation B.S.,
but I write
co...
Master’s
I am a
Employed (M.A
3 4 developer by Austria NaN NaN
full-time M.Eng
profession
United
Independent Master’s
I am a Kingdom of
contractor, (M.A
4 5 developer by Great NaN England
freelancer, or M.Eng
profession Britain and
self-em...
Northern I...
I am a Ba
United
student who Student, part- degre
5 6 States of Georgia NaN
is learning to time B.S.,
America
code
Se
I code United
I prefer not to New sch
6 7 primarily as States of NaN
say Hampshire Americ
a hobby America
sch
I am a Ba
student who Student, full- degre
7 8 Malaysia NaN NaN
is learning to time B.S.,
code
Ba
I am a
Employed degre
8 9 developer by India NaN NaN
part-time B.S.,
profession
Master’s
I am a
Employed (M.A
9 10 developer by Sweden NaN NaN
full-time M.Eng
profession
United
Ba
I am a Kingdom of
Employed degre
10 11 developer by Great NaN England
full-time B.S.,
profession Britain and
Northern I...
Ba
I am a
Employed degre
11 12 developer by Spain NaN NaN
full-time B.S.,
profession
Master’s
I am a
Employed (M.A
12 13 developer by Germany NaN NaN
full-time M.Eng
profession
I am a Master’s
student who Employed (M.A
13 14 Peru NaN NaN
is learning to full-time M.Eng
code
I used to be United
Not Ba
a developer Kingdom of
employed, degre
14 15 by Great NaN England
but looking B.S.,
profession, Britain and
for work
but no... Northern I...
I am a Se
United
student who Student, full- sch
15 16 States of Missouri NaN
is learning to time Americ
America
code sch
Ba
I am a
Employed degre
16 17 developer by Turkey NaN NaN
full-time B.S.,
profession
Ba
I am a
Employed degre
17 18 developer by Canada NaN NaN
full-time B.S.,
profession
I am not
primarily a Other
I prefer not to
18 19 developer, Singapore NaN NaN degree
say
but I write Ed.
co...
I used to be
Ba
a developer
Employed degre
19 20 by Brazil NaN NaN
full-time B.S.,
profession,
but no...
Ba
I am a
Student, full- degre
20 21 developer by Germany NaN NaN
time B.S.,
profession
I am a Ba
student who Student, full- degre
21 22 Sweden NaN NaN
is learning to time B.S.,
code
I am a
student who Student, full- college/u
22 23 India NaN NaN
is learning to time study
code ea
Master’s
I am a
Employed (M.A
23 24 developer by France NaN NaN
full-time M.Eng
profession
Master’s
I am a
Employed (M.A
24 25 developer by Germany NaN NaN
full-time M.Eng
profession
I am not
primarily a Other
Employed
25 26 developer, Germany NaN NaN degree
full-time
but I write Ed.
co...
I am not
Master’s
primarily a
Employed (M.A
26 27 developer, Switzerland NaN NaN
full-time M.Eng
but I write
co...
United
Ba
I am a Kingdom of
Employed degre
27 28 developer by Great NaN England
full-time B.S.,
profession Britain and
Northern I...
United
Independent Se
I am a Kingdom of
contractor, sch
28 29 developer by Great NaN England
freelancer, or Americ
profession Britain and
self-em... sch
Northern I...
Master’s
I am a
Employed Russian (M.A
29 30 developer by NaN NaN
full-time Federation M.Eng
profession
I code
I prefer not to
30 31 primarily as Malawi NaN NaN Someth
say
a hobby
Ba
I am a
Employed degre
31 32 developer by Israel NaN NaN
full-time B.S.,
profession
Not Master’s
I am a
employed, (M.A
32 33 developer by Poland NaN NaN
but looking M.Eng
profession
for work
Ba
I am a
Employed degre
33 34 developer by Turkey NaN NaN
full-time B.S.,
profession
Master’s
I am a
Employed (M.A
34 35 developer by Ukraine NaN NaN
full-time M.Eng
profession
Master’s
I am a
Employed (M.A
35 36 developer by Germany NaN NaN
full-time M.Eng
profession
Ba
I am a United
Employed District of degre
36 37 developer by States of NaN
full-time Columbia B.S.,
profession America
I am a United
Employed college/u
37 38 developer by States of Massachusetts NaN
full-time study
profession America
ea
I am a Not Ba
student who employed, degre
38 39 Viet Nam NaN NaN
is learning to but looking B.S.,
code for work
I am a Ba
student who Student, part- degre
39 40 India NaN NaN
is learning to time B.S.,
code