Book description
Manage and Automate Data Analysis with Pandas in Python
Today, analysts must manage data characterized by extraordinary variety, velocity, and volume. Using the open source Pandas library, you can use Python to rapidly automate and perform virtually any data analysis task, no matter how large or complex. Pandas can help you ensure the veracity of your data, visualize it for effective decision-making, and reliably reproduce analyses across multiple data sets.
Pandas for Everyone, 2nd Edition, brings together practical knowledge and insight for solving real problems with Pandas, even if youre new to Python data analysis. Daniel Y. Chen introduces key concepts through simple but practical examples, incrementally building on them to solve more difficult, real-world data science problems such as using regularization to prevent data overfitting, or when to use unsupervised machine learning methods to find the underlying structure in a data set.
New features to the second edition include:
Extended coverage of plotting and the seaborn data visualization library
Expanded examples and resources
Updated Python 3.9 code and packages coverage, including statsmodels and scikit-learn libraries
Online bonus material on geopandas, Dask, and creating interactive graphics with Altair
Chen gives you a jumpstart on using Pandas with a realistic data set and covers combining data sets, handling missing data, and structuring data sets for easier analysis and visualization. He demonstrates powerful data cleaning techniques, from basic string manipulation to applying functions simultaneously across dataframes.
Once your data is ready, Chen guides you through fitting models for prediction, clustering, inference, and exploration. He provides tips on performance and scalability and introduces you to the wider Python data analysis ecosystem.
Work with DataFrames and Series, and import or export data
Create plots with matplotlib, seaborn, and pandas
Combine data sets and handle missing data
Reshape, tidy, and clean data sets so theyre easier to work with
Convert data types and manipulate text strings
Apply functions to scale data manipulations
Aggregate, transform, and filter large data sets with groupby
Leverage Pandas advanced date and time capabilities
Fit linear models using statsmodels and scikit-learn libraries
Use generalized linear modeling to fit models with different response variables
Compare multiple models to select the best one
Regularize to overcome overfitting and improve performance
Use clustering in unsupervised machine learning
Table of contents
- Cover Page
- About This eBook
- Halftitle Page
- Title Page
- Copyright Page
- Pearson’s Commitment to Diversity, Equity, and Inclusion
- Dedication Page
- Contents
- Foreword to Second Edition
- Foreword to First Edition
- Preface
- Acknowledgments
- About the Author
- Changes in the Second Edition
- Part I: Introduction
- Part II: Data Processing
-
Part III: Data Types
- 9. Missing Data
- 10. Data Types
- 11. Strings and Text Data
-
12. Dates and Times
- Learning Objectives
- 12.1 Python’s datetime Object
- 12.2 Converting to datetime
- 12.3 Loading Data That Include Dates
- 12.4 Extracting Date Components
- 12.5 Date Calculations and Timedeltas
- 12.6 Datetime Methods
- 12.7 Getting Stock Data
- 12.8 Subsetting Data Based on Dates
- 12.9 Date Ranges
- 12.10 Shifting Values
- 12.11 Resampling
- 12.12 Time Zones
- 12.13 Arrow for Better Dates and Times
- Conclusion
- Part IV: Data Modeling
- Part V: Conclusion
-
Part VI: Appendices
- A. Concept Maps
- B. Installation and Setup
- C. Command Line
- D. Project Templates
- E. Using Python
- F. Working Directories
- G. Environments
- H. Install Packages
- I. Importing Libraries
- J. Code Style
- K. Containers: Lists, Tuples, and Dictionaries
- L. Slice Values
- M. Loops
- N. Comprehensions
- O. Functions
- P. Ranges and Generators
- Q. Multiple Assignment
- R. Numpy ndarray
- S. Classes
- T. SettingWithCopyWarning
- U. Method Chaining
- V. Timing Code
- W. String Formatting
- X. Conditionals (if-elif-else)
- Y. New York ACS Logistic Regression Example
- Z. Replicating Results in R
- Index
- Code Snippets
Product information
- Title: Pandas for Everyone: Python Data Analysis, 2nd Edition
- Author(s):
- Release date: December 2022
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780137891146
You might also like
book
Pandas for Everyone: Python Data Analysis, First Edition
The Hands-On, Example-Rich Introduction to Pandas Data Analysis in Python Today, analysts must manage data characterized …
video
Data Analysis with Pandas and Python
This course begins with the essentials, introducing you to Anaconda and Jupyter Lab setup for Python …
book
Data Analysis with Python and PySpark
Think big about your data! PySpark brings the powerful Spark big data processing engine to the …
book
Python Data Analytics: With Pandas, NumPy, and Matplotlib
Explore the latest Python tools and techniques to help you tackle the world of data acquisition …