Pandas
by
Reuven M. Lerner
Login
Buy for $300
Section 4: Advanced series functionality
Section 4: Advanced series functionality
Pandas, part 4 -- advanced series.ipynb
47.6 KB
Get access
25 size and count
3 mins
Get access
26 median and quantiles
4 mins
Get access
27 describe
4 mins
Get access
28 describe with non-numeric data
2 mins
Get access
29 head and tail
3 mins
Get access
30 value_counts
5 mins
Preview
31 duplicated
3 mins
Get access
32 replace
5 mins
Get access
33 Sorting
5 mins
Get access
34 apply
5 mins
Get access
35 Exercises 3
2 mins
Get access
exercise-3.txt
359 Bytes
Get access
36 Exercise solutions 3
6 mins
Get access
Table of contents
Pandas
by
Reuven M. Lerner
ui-24px-outline-1_lock
Section 1: Introduction
Section 1: Introduction
Draft
Pandas, part 1 -- introduction.ipynb
Draft
Pandas, part 1 -- introduction.ipynb
Draft
1 Introduction
Draft
1 Introduction
Draft
2 what-is-pandas.mov
Draft
2 what-is-pandas.mov
Draft
3 Installing Pandas
Draft
3 Installing Pandas
Draft
4 Loading Pandas into Jupyter
Draft
4 Loading Pandas into Jupyter
ui-24px-outline-1_lock
Section 2: Series
Section 2: Series
Draft
Pandas, part 2 -- series.ipynb
Draft
Pandas, part 2 -- series.ipynb
Draft
5 Creating a series
Draft
5 Creating a series
Draft
6 Creating a series with NumPy
Draft
6 Creating a series with NumPy
Draft
7 Setting and retrieving with indexes
Draft
7 Setting and retrieving with indexes
Draft
8 Retrieving with loc and iloc
Draft
8 Retrieving with loc and iloc
Draft
9 Setting the index
Draft
9 Setting the index
Draft
10 Non-unique indexes
Draft
10 Non-unique indexes
Draft
10a Fancy indexing
Draft
10a Fancy indexing
Draft
11 Basic methods
Draft
11 Basic methods
Draft
12 Operations by index
Draft
12 Operations by index
Draft
13 Broadcasting operators
Draft
13 Broadcasting operators
Draft
14 Boolean indexing
Draft
14 Boolean indexing
Draft
15 Exercises 1
Draft
15 Exercises 1
Draft
exercise-1.txt
Draft
exercise-1.txt
Draft
16 Exercise solutions 1
Draft
16 Exercise solutions 1
ui-24px-outline-1_lock
Section 3: dtypes and NaN
Section 3: dtypes and NaN
Draft
Pandas, part 3 -- dtypes and NaN.ipynb
Draft
Pandas, part 3 -- dtypes and NaN.ipynb
Draft
17 dtypes
Draft
17 dtypes
Draft
18 assigning to dtypes
Draft
18 assigning to dtypes
Draft
19 Using astype
Draft
19 Using astype
Draft
20 NaN
Draft
20 NaN
Draft
20a Skipping NaN
Draft
20a Skipping NaN
Draft
21 dropna and fillna
Draft
21 dropna and fillna
Draft
22 fill_value
Draft
22 fill_value
Draft
23 Exercises 2
Draft
23 Exercises 2
Draft
exercise-2.txt
Draft
exercise-2.txt
Draft
24 Exercise solutions 2
Draft
24 Exercise solutions 2
ui-24px-outline-1_lock
Section 4: Advanced series functionality
Section 4: Advanced series functionality
Draft
Pandas, part 4 -- advanced series.ipynb
Draft
Pandas, part 4 -- advanced series.ipynb
Draft
25 size and count
Draft
25 size and count
Draft
26 median and quantiles
Draft
26 median and quantiles
Draft
27 describe
Draft
27 describe
Draft
28 describe with non-numeric data
Draft
28 describe with non-numeric data
Draft
29 head and tail
Draft
29 head and tail
Draft
30 value_counts
Draft
30 value_counts
Draft
31 duplicated
Draft
31 duplicated
Draft
32 replace
Draft
32 replace
Draft
33 Sorting
Draft
33 Sorting
Draft
34 apply
Draft
34 apply
Draft
35 Exercises 3
Draft
35 Exercises 3
Draft
exercise-3.txt
Draft
exercise-3.txt
Draft
36 Exercise solutions 3
Draft
36 Exercise solutions 3
ui-24px-outline-1_lock
Section 5: Strings
Section 5: Strings
Draft
Pandas, part 5 -- Strings.ipynb
Draft
Pandas, part 5 -- Strings.ipynb
Draft
37 Strings in Pandas vs NumPy
Draft
37 Strings in Pandas vs NumPy
Draft
38 String methods and the "str" object
Draft
38 String methods and the "str" object
Draft
39 Finding numbers
Draft
39 Finding numbers
Draft
40 startswith and endswith
Draft
40 startswith and endswith
Draft
41 [] and strings
Draft
41 [] and strings
Draft
42 str.contains
Draft
42 str.contains
Draft
43 find and index
Draft
43 find and index
Draft
44 Modifying data
Draft
44 Modifying data
Draft
45 Splitting and reusing str
Draft
45 Splitting and reusing str
Draft
46 Exercises 4
Draft
46 Exercises 4
Draft
exercise-4.txt
Draft
exercise-4.txt
Draft
47 Exercise 4 solutions
Draft
47 Exercise 4 solutions
ui-24px-outline-1_lock
Section 6: Plotting series
Section 6: Plotting series
Draft
Pandas, part 6 -- plotting.ipynb
Draft
Pandas, part 6 -- plotting.ipynb
Draft
48 Simple plots with matplotlib
Draft
48 Simple plots with matplotlib
Draft
49 More sophisticated plotting with Matplotlib
Draft
49 More sophisticated plotting with Matplotlib
Draft
50 Line plots via pandas
Draft
50 Line plots via pandas
Draft
51 Bar plots with pandas
Draft
51 Bar plots with pandas
Draft
52 Histograms
Draft
52 Histograms
Draft
53 Pie plots
Draft
53 Pie plots
Draft
54 Box plots
Draft
54 Box plots
Draft
55 Exercises 5
Draft
55 Exercises 5
Draft
exercise-5.txt
Draft
exercise-5.txt
Draft
56 Exercise 5 solutions
Draft
56 Exercise 5 solutions
ui-24px-outline-1_lock
Section 7: Data frames
Section 7: Data frames
Draft
Pandas, part 7 -- data frames.ipynb
Draft
Pandas, part 7 -- data frames.ipynb
Draft
57 Data frame introduction
Draft
57 Data frame introduction
Draft
58 Index and columns -- simple retrievals
Draft
58 Index and columns -- simple retrievals
Draft
58a Dot syntax for column retrieval
Draft
58a Dot syntax for column retrieval
Draft
59 Setting the index and columns
Draft
59 Setting the index and columns
Draft
60 Retrieving an individual value
Draft
60 Retrieving an individual value
Draft
61 Creating data frames from NumPy arrays
Draft
61 Creating data frames from NumPy arrays
Draft
62 Creating data frames from a list of dicts
Draft
62 Creating data frames from a list of dicts
Draft
63 Creating data frames from a dict of lists, arrays, or series
Draft
63 Creating data frames from a dict of lists, arrays, or series
Draft
64 Methods on columns
Draft
64 Methods on columns
Draft
65 Methods on an entire data frame
Draft
65 Methods on an entire data frame
Draft
66 Retrieving multiple columns
Draft
66 Retrieving multiple columns
Draft
67 Retrieving multiple rows
Draft
67 Retrieving multiple rows
Draft
68 Updating values in a data frame
Draft
68 Updating values in a data frame
Draft
68a Using "describe" on data frames
Draft
68a Using "describe" on data frames
Draft
68b Updating a column
Draft
68b Updating a column
Draft
68c Adding columns
Draft
68c Adding columns
Draft
68d Updating values in rows and adding rows
Draft
68d Updating values in rows and adding rows
Draft
68e Dropping one or more rows
Draft
68e Dropping one or more rows
Draft
68f Dropping one or more columns
Draft
68f Dropping one or more columns
Draft
69 Exercises 6
Draft
69 Exercises 6
Draft
exercise-6.txt
Draft
exercise-6.txt
Draft
70 Exercise solutions 6
Draft
70 Exercise solutions 6
ui-24px-outline-1_lock
Section 8: Boolean indexes and data frames
Section 8: Boolean indexes and data frames
Draft
Pandas, part 8 -- boolean indexes and data frames.ipynb
Draft
Pandas, part 8 -- boolean indexes and data frames.ipynb
Draft
71 Boolean indexes on a column
Draft
71 Boolean indexes on a column
Draft
72 Applying boolean indexes to other columns
Draft
72 Applying boolean indexes to other columns
Draft
73 Complex queries across columns
Draft
73 Complex queries across columns
Draft
74 Applying a boolean index to an entire data frame
Draft
74 Applying a boolean index to an entire data frame
Draft
75 Assigning to data frames -- recap
Draft
75 Assigning to data frames -- recap
Draft
76 Assigning to multiple rows and columns with loc
Draft
76 Assigning to multiple rows and columns with loc
Draft
77 Assigning to a column based on a boolean index
Draft
77 Assigning to a column based on a boolean index
Draft
78 Chained assignment -- what it is, and how to avoid it
Draft
78 Chained assignment -- what it is, and how to avoid it
Draft
79 Data frame assignment example
Draft
79 Data frame assignment example
Draft
80 Assigning a scalar value to a data frame, based on a condition
Draft
80 Assigning a scalar value to a data frame, based on a condition
Draft
81 Assigning a vector value to a data frame, based on a condition
Draft
81 Assigning a vector value to a data frame, based on a condition
Draft
82 Using df.replace to replace values across a data frame
Draft
82 Using df.replace to replace values across a data frame
Draft
82a Using isna, dropna, and fillna with data frames
Draft
82a Using isna, dropna, and fillna with data frames
Draft
83 Using mask and where
Draft
83 Using mask and where
Draft
84 Using clip
Draft
84 Using clip
Draft
85 Exercises 7
Draft
85 Exercises 7
Draft
exercise-7.txt
Draft
exercise-7.txt
Draft
86 Exercise solutions 7
Draft
86 Exercise solutions 7
ui-24px-outline-1_lock
Section 9: Pandas and I/O — reading and writing files
Section 9: Pandas and I/O — reading and writing files
Draft
Pandas, part 9 -- input and output.ipynb
Draft
Pandas, part 9 -- input and output.ipynb
Draft
87 Pandas and IO -- and saving to the clipboard
Draft
87 Pandas and IO -- and saving to the clipboard
Draft
88 Saving to CSV
Draft
88 Saving to CSV
Draft
89 Changing the CSV separator
Draft
89 Changing the CSV separator
Draft
90 NaN representation
Draft
90 NaN representation
Draft
91 Choosing output columns
Draft
91 Choosing output columns
Draft
92 Writing row and column names
Draft
92 Writing row and column names
Draft
93 Saving with compression
Draft
93 Saving with compression
Draft
94 Reading CSV files
Draft
94 Reading CSV files
Draft
95 Choosing and ignoring header rows
Draft
95 Choosing and ignoring header rows
Draft
96 Naming columns
Draft
96 Naming columns
Draft
97 Choosing columns
Draft
97 Choosing columns
Draft
98 Choosing + naming
Draft
98 Choosing + naming
Draft
99 Reading NaN values
Draft
99 Reading NaN values
Draft
100 dtype hints when reading CSV
Draft
100 dtype hints when reading CSV
Draft
101 Reading from the network
Draft
101 Reading from the network
Draft
102 Exercises 8
Draft
102 Exercises 8
Draft
exercise-8.txt
Draft
exercise-8.txt
Draft
103 Exercise 8 solutions
Draft
103 Exercise 8 solutions
Draft
104 Excel files
Draft
104 Excel files
Draft
105 JSON files
Draft
105 JSON files
Draft
106 SQL databases
Draft
106 SQL databases
ui-24px-outline-1_lock
Section 10: Data analysis with Pandas
Section 10: Data analysis with Pandas
Draft
Pandas, part 10 -- analysis of real-world data.ipynb
Draft
Pandas, part 10 -- analysis of real-world data.ipynb
Draft
flight-delays.zip
Draft
flight-delays.zip
Draft
taxi.csv
Draft
taxi.csv
Draft
107 Analysis of taxi data
Draft
107 Analysis of taxi data
Draft
108 Taxi data part 2
Draft
108 Taxi data part 2
Draft
109 Taxi data part 3
Draft
109 Taxi data part 3
Draft
110 Taxi data part 4
Draft
110 Taxi data part 4
Draft
111 Taxi data part 5
Draft
111 Taxi data part 5
Draft
112 Taxi data part 6
Draft
112 Taxi data part 6
Draft
113 Exercises 9
Draft
113 Exercises 9
Draft
114 Exercise 9 solutions
Draft
114 Exercise 9 solutions
ui-24px-outline-1_lock
Section 11: Memory management and categories
Section 11: Memory management and categories
Draft
Pandas, part 11 -- Memory management and categories.ipynb
Draft
Pandas, part 11 -- Memory management and categories.ipynb
Draft
115 Data frames and memory usage
Draft
115 Data frames and memory usage
Draft
116 Memory usage in series and data frames
Draft
116 Memory usage in series and data frames
Draft
117 Categories.mp4
Draft
117 Categories.mp4
Draft
118 Setting dtypes upon load.mp4
Draft
118 Setting dtypes upon load.mp4
Draft
119 Predefining categories
Draft
119 Predefining categories
Draft
120 Avoiding low-memory warnings.mp4
Draft
120 Avoiding low-memory warnings.mp4
Draft
exercise-10.txt
Draft
exercise-10.txt
Draft
airlines.dat
Draft
airlines.dat
Draft
121 Exercises 10.mp4
Draft
121 Exercises 10.mp4
Draft
122 Exercise solutions 10.mp4
Draft
122 Exercise solutions 10.mp4
ui-24px-outline-1_lock
Section 12: Indexes and multi-indexes
Section 12: Indexes and multi-indexes
Draft
Pandas, part 12 -- indexes.ipynb
Draft
Pandas, part 12 -- indexes.ipynb
Draft
123 set_index and reset_index.mp4
Draft
123 set_index and reset_index.mp4
Draft
124 multi-indexes on series.mp4
Draft
124 multi-indexes on series.mp4
Draft
125 multi-indexes on data frames.mp4
Draft
125 multi-indexes on data frames.mp4
Draft
126 stack and unstack.mp4
Draft
126 stack and unstack.mp4
Draft
127 swaplevel.mp4
Draft
127 swaplevel.mp4
Draft
128 Exercises 11.mp4
Draft
128 Exercises 11.mp4
Draft
exercise-11.txt
Draft
exercise-11.txt
Draft
129 Exercise solutions 11.mp4
Draft
129 Exercise solutions 11.mp4
Draft
college.csv
Draft
college.csv
ui-24px-outline-1_lock
Section 13: Sorting, merging, and grouping
Section 13: Sorting, merging, and grouping
Draft
Pandas, part 13 -- sorting, joining, merging, and grouping.ipynb
Draft
Pandas, part 13 -- sorting, joining, merging, and grouping.ipynb
Draft
reuven_travel.csv
Draft
reuven_travel.csv
Draft
oecd_locations.csv
Draft
oecd_locations.csv
Draft
phonecodes.json
Draft
phonecodes.json
Draft
oecd_tourist_spending.csv
Draft
oecd_tourist_spending.csv
Draft
weather.zip
Draft
weather.zip
Draft
130 sort_index.mp4
Draft
130 sort_index.mp4
Draft
131 sort_values.mp4
Draft
131 sort_values.mp4
Draft
132 concatenating data frames.mp4
Draft
132 concatenating data frames.mp4
Draft
133 concatenating different data frames.mp4
Draft
133 concatenating different data frames.mp4
Draft
134 Inner and outer joins.mp4
Draft
134 Inner and outer joins.mp4
Draft
135 merging -- inner, left, right, and outer.mp4
Draft
135 merging -- inner, left, right, and outer.mp4
Draft
136 groupby.mp4
Draft
136 groupby.mp4
Draft
137 pivot tables.mp4
Draft
137 pivot tables.mp4
Draft
138 Exercises 12.mp4
Draft
138 Exercises 12.mp4
Draft
exercise-12.txt
Draft
exercise-12.txt
Draft
139 Exercise solutions 12.mp4
Draft
139 Exercise solutions 12.mp4
ui-24px-outline-1_lock
Section 14: Plotting data frames
Section 14: Plotting data frames
Draft
140 Plotting data frames.mp4
Draft
140 Plotting data frames.mp4
Draft
141 Bar plots.mp4
Draft
141 Bar plots.mp4
Draft
142 Stacked bar plots.mp4
Draft
142 Stacked bar plots.mp4
Draft
143 Histograms.mp4
Draft
143 Histograms.mp4
Draft
144 Pie plots.mp4
Draft
144 Pie plots.mp4
Draft
145 Box plots.mp4
Draft
145 Box plots.mp4
Draft
146 Scatter plots.mp4
Draft
146 Scatter plots.mp4
Draft
147 Scatter plots and colormaps.mp4
Draft
147 Scatter plots and colormaps.mp4
Draft
148 Scatter matrix.mp4
Draft
148 Scatter matrix.mp4
Draft
149 Exercises 13.mp4
Draft
149 Exercises 13.mp4
Draft
150 Exercise 13 solutions.mp4
Draft
150 Exercise 13 solutions.mp4
Draft
exercise-13.txt
Draft
exercise-13.txt
Draft
Pandas, part 14 -- plotting.ipynb
Draft
Pandas, part 14 -- plotting.ipynb
ui-24px-outline-1_lock
Conclusion
Conclusion
Draft
151 Conclusion
Draft
151 Conclusion
Welcome!
Enter your info below to login.
Your email
Your password
Login
Forgot your password?