Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed Introduction to pandas!
You have completed Introduction to pandas!
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 = [
['...