Python Data Analysis Basics
In the Cleaning and Preparing Data lesson, you discovered that not all data that data scientists encounter is clean data that’s ready for analysis. Oftentimes, you’ll need to revamp the date or clean the data to get it into a format ready for analysis. That lesson was focused on cleaning text data and preparing it for analysis by using string techniques such as replacing substrings, capitalizing strings, and parsing numbers from complex strings.
In this lesson, you’ll build on the cleaning work you did with the Museum of Modern Art (MoMA) data set in the previous lesson, and get into the fun part: analyzing the data! You’ll learn how to insert variables into strings, improve on your knowledge on creating frequency tables, formatting numbers inside strings, and more!
You’ll also learn how to: calculate how old an artist was when they created their artwork, analyze and interpret the distribution of artist ages, create functions to summarize the data, and print summaries in an easy-to-read-way.
These techniques will be extremely valuable as you continue to learn how to be a data expert. You’ll not only use them whenever you analyze data but also when you explore data before performing a more complex task, such as machine learning.
- Learn basic data analysis techniques.
- Learn how to summarize numeric data.
- Learn how to format strings in Python.
- Reading our MoMA Data Set
- Calculating Artist Ages
- Converting Ages to Decades
- Summarizing the Decade Data
- Inserting Variables Into Strings
- Creating an Artist Frequency Table
- Creating an Artist Summary Function
- Formatting Numbers Inside Strings
- Challenge: Summarizing Artwork Gender Data
- Next Steps