Before analyzing your data, it is helpful to learn about it so you know what you're working with. In this video dig into inspecting data sets with Pandas.
- [Instructor] After we've learned how to read data…and parse it using Pandas,…it's important to also know how to explore it.…In this clip, what I'm going to show you is, essentially,…how to read in a CSV file and just explore it a little bit…using some basic functions.…To get started, we need to import pandas…so we'll say import pandas and give it the name, pd.…Then, we'll create a dataframe by using the read CSV file…and actually pulling in the data that is located locally…with our exercise files.…
Take a look at that just by printing it out,…as you can see here.…Pretty straight-forward.…We have a row key, the month, the product name,…and the number of sales for that month.…Now, if I just wanted to see the first 10 rows,…I can use the head command and say, n=10.…Similarly, I can do the last 10 rows by using the tail.…And these are common if you've been…working in Bash for a while.…These are some basic head and tail options…are ways of looking at files.…We're essentially copying those same functions over here…
Released
8/9/2017- Working with flat files, including Parquet
- Reading data using APIs or libraries
- Inspecting and aggregating data with Pandas
- Exporting data with Pandas
- Creating charts using ggplot
- Styling plots using ggplot
- Finishing data visualizations
Share this video
Embed this video
Video: Inspect DataFrames with Pandas