Join Jonathan Fernandes for an in-depth discussion in this video Solution, part of pandas Essential Training.
- [Instructor] Onto the basic plotting challenge.…So, we've imported Pandas.…The next thing we're going to have to do…is to import matplotlib.…So, pyplot as plt…and we want to be able to see the plots…in our Jupyter Notebook.…We'll also want to import seaborn as sns.…Let me just run all of these cells again.…
Right, onto the first question.…Plot the number of medals achieved…by the Chinese team, that's the men and women,…in Beijing 2008 using matplotlib and seaborn.…So, in Pandas, we want to be able to identify…the men and women who have participated…from team China…in the Beijing Olympics…which is in 2008.…So, 00 for the DataFrame, 00.Edition…and we're looking for 2008…and remember that because we are going…to be having multiple conditions,…we need to enclose them in brackets…and we're looking for team China.…
We get that information from the series NOC,…so 00.NOC equals CHN.…Now, I'm going to assign this to the DataFrame men and women,…so mw and let's just check…and make sure that we've got some entries…in that DataFrame.…
- Working with plots
- Boolean indexing
- String handling
- Grouping data
- Creating your own colormaps
Skill Level Intermediate
1. Technical Setup
2. Series and DataFrames
3. Data Input and Validation
4. Basic Analysis
5. Basic Plotting
9. Data Visualizations
Next steps1m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.