Charles Kelly explains how to create Pandas data frames.
- [Lecturer] The Create file from your Exercises Files…folder is pre-populated with import statements…for Pandas and NumPy,…as well as narrative information for the attributes…of data frames, and with URLs for creating data frames,…and using the Pandas cookbook.…Begin by placing your cursor in the import cell.…Execute the cell by pressing shift + enter.…Let's begin by creating a Python dictionary.…Then we'll use the dictionary in the constructor…for a data frame.…
We'll call the dictionary My Dictionary.…It will have three values, 45, minus 19.5…and 4,444.…Its keys will be A, B, and C.…We can print both the keys and the values.…And we see that the keys are C, D, A,…and the values are the same as those that we used…in the input.…Now, let's use the dictionary in a data frames constructor.…The column headers for the data frame are derived…from the keys in the dictionary.…
The values in the dictionary are replicated one time,…that is one row,…for each of the values in the index.…In this case, first and again.…In this example from the Pandas cookbook,…
Watch this course to gain an overview of Pandas. Charles Kelly helps you get started with time series, data frames, panels, plotting, and visualization. All you need is a copy of the free and interactive Jupyter Notebook app to practice and follow along.
- Using the Markdown language and Jupyter Notebook
- Creating objects
- Selecting objects
- Using operations
- Merging data
- Creating series
- Creating data frames
- Creating panels
- Annotating plots and data frame plots
Skill Level Intermediate
NumPy Data Science Essential Trainingwith Charles Kelly3h 54m Intermediate
SQL: Data Reporting and Analysiswith Emma Saunders2h 16m Intermediate
1. Introduction to Notebooks
2. Pandas Overview
4. Data Frames and Panels
- 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.