0
0
Pandasdata~15 mins

What is Pandas - Hands-On Activity

Choose your learning style9 modes available
What is Pandas
📖 Scenario: You are starting to learn data science. You want to understand what Pandas is and how to create a simple data table using it.
🎯 Goal: Learn what Pandas is and create a simple table (DataFrame) with it.
📋 What You'll Learn
Create a Pandas DataFrame from a dictionary
Understand that Pandas helps organize data in tables
Print the DataFrame to see the data
💡 Why This Matters
🌍 Real World
Pandas is used to organize data from surveys, sales, or any list of information to make it easy to analyze.
💼 Career
Data scientists and analysts use Pandas daily to clean, explore, and prepare data for reports and machine learning.
Progress0 / 4 steps
1
Create a dictionary with sample data
Create a dictionary called data with these exact entries: 'Name': ['Alice', 'Bob', 'Charlie'] and 'Age': [25, 30, 35].
Pandas
Need a hint?

Use curly braces {} to create a dictionary. The keys are 'Name' and 'Age'. The values are lists of names and ages.

2
Import Pandas library
Write the exact line import pandas as pd to import the Pandas library with the alias pd.
Pandas
Need a hint?

Use the import keyword followed by pandas as pd.

3
Create a DataFrame from the dictionary
Create a Pandas DataFrame called df from the dictionary data using pd.DataFrame(data).
Pandas
Need a hint?

Use pd.DataFrame() and pass the data dictionary inside the parentheses.

4
Print the DataFrame
Write print(df) to display the DataFrame df.
Pandas
Need a hint?

Use the print() function with df inside to show the table.