Student Activity
Student Activity Guide:
1) Introduction to Pandas DataFrames and Series
import pandas as pd
# Creating a DataFrame
data = {'Name': ['Alice', 'Bob', 'Charlie'], 'Age': [25, 30, 35], 'City': ['New York', 'Los Angeles', 'Chicago']}
df = pd.DataFrame(data)
print(df)
# Extracting a column as a Series
ages = df['Age']
print("Ages:", ages)2) Data Manipulation and Transformation
3) Handling Missing Data
4) Merging and Grouping Data
Previous4. Time-series Data and Statistical Functions for Data AnalysisNextChapter 14: Data Visualization with Matplotlib and Seaborn
Last updated