Toggle Navigation
Everything
Blog posts
Pages
Home
About
The Author
The Book
This Website
Book
Chapter 1: Introduction
Chapter 2: The Core Python Language I
Examples
Questions
Problems
Additional Problems
Chapter 3: Simple Plotting with pylab
Examples
Problems
Chapter 4: The core Python language II
Examples
Questions
Problems
Additional Problems
Chapter 5: IPython and IPython Notebook
Examples
Chapter 6: NumPy
Examples
Questions
Problems
Additional Examples
Additional Problems
Chapter 7: Matplotlib
Examples
Questions
Problems
Chapter 8: SciPy
Examples
Questions
Problems
Additional Examples
Additional Problems
Chapter 9: General Scientific Programming
Examples
Questions
Problems
Errata
Book (2nd ed.)
Chapter 1: Introduction
Chapter 2: The Core Python Language I
Examples
Questions
Problems
Additional Problems
Chapter 3: Simple Plots and Charts
Examples
Problems
Chapter 4: The core Python language II
Examples
Questions
Problems
Additional Problems
Chapter 5: IPython and Jupyter Notebook
Examples
Problems
Chapter 6: NumPy
Examples
Questions
Problems
Additional Examples
Additional Problems
Chapter 7: Matplotlib
Examples
Questions
Problems
Chapter 8: SciPy
Examples
Questions
Problems
Additional Examples
Additional Problems
Chapter 9: Data Analysis with pandas
Examples
Problems
Chapter 10: General Scientific Programming
Examples
Questions
Problems
Errata
Additional Notes
Blog
Apps
Contact
Home
Book (2nd ed.)
Chapter 9: Data Analysis with pandas
Examples
Examples
E9.1 Replacing NaN and infinite values in pandas
E9.2 loc and iloc in pandas
E9.3 Data analysis: female literacy in India
E9.4 Retrieving ionization energies from a pandas DataFrame
E9.5 Using converter functions to read data files to pandas DataFrames
E9.6 Writing a comma-separated file from a pandas DataFrame
E9.7 Reading an Excel sheet into a pandas DataFrame
E9.8 Writing a pandas DataFrame to an Excel file
E9.9 A simple webscraping script with pandas
E9.10 Resampling a DataFrame to plot statistics of a river gauge
E9.11 Millikan's oil-drop experiment
E9.12 Split–Apply–Combine
E9.13 Analysing the history of nuclear explosions with pandas
E9.14 Analysing the history of volcanic eruptions with pandas