Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
- Welcome 5:18
- Meet Series 1:14
- About This Course
- Creating a Series
- Review Series Creation 3 questions
- Accessing a Series
- Review Series Access 5 questions
- Vectorization and Broadcasting Review 2:00
- Series Vectorization and Broadcasting
- Review Series Vectorization and Broadcasting 3 questions
- Meet DataFrames 1:33
- Creating a DataFrame
- Review DataFrame Creation 3 questions
- Accessing a DataFrame
- Review DataFrame Access 3 questions
- Onwards 0:31
Instruction
Creating a DataFrame
Creating a DataFrame
There are actually quite a few ways to create a DataFrame from existing objects.
Let's explore!
# Setup
import pandas as pd
From a 2-dimensional object
If your data is already in rows and columns, like a list of lists, you can just pass it along to the constructor. Labels and Column headings will be automatically generated as a range.
test_users_list = [
['...