Summary Statistics Workout
- 01:14
Practice using summary statistics in Pandas. How is use pandas to analyze stock data, how to import data into a DataFrame, and perform basic data analysis tasks such as finding minimum and maximum values of columns and generating summary statistics for numerical data.
Downloads
No associated resources to download.
Transcript
Now we're going to get a little more practice with panda's dataframes. Before starting this exercise, make sure you've imported stock data dot csv into the data frame stock data. Then let's complete the following steps. First, print the minimum values of all columns in stock data. Then print the maximum values of all columns and stock data. And finally, in a new cell display all numerical summary statistics for stock data. Pause the video now and complete the exercise.
So here pandas is imported. Stock data is created as a data frame, and then I'm printing stock data dot min for the minimum values in all of my columns. And then stock data max for the maximum values.
For the summary statistics, we can use the describe function. So I'm gonna write the name of my data frame stock data, and then do describe to call the describe function. When I execute that cell, it's going to give me summary statistics for all of the different features, or at least all of the numerical features in my data frame.