DEV Community

Aditi Sharma
Aditi Sharma

Posted on

πŸš€ Day 12 of My Python Learning Journey

Getting Started with Pandas DataFrames

After exploring Pandas Series, today I dived into DataFrames β€” the backbone of Pandas and data analysis.

πŸ”Ή Creating a DataFrame

import pandas as pd

data = {
"Name": ["Alice", "Bob", "Charlie"],
"Age": [25, 30, 35],
"City": ["NY", "LA", "Chicago"]
}

df = pd.DataFrame(data)
print(df)

βœ… Output:

 Name  Age     City
Enter fullscreen mode Exit fullscreen mode

0 Alice 25 NY
1 Bob 30 LA
2 Charlie 35 Chicago

πŸ”Ή Fun Facts about DataFrames
β€’ They’re like Excel sheets in Python πŸ“
β€’ Built on NumPy arrays β†’ super fast
β€’ Support powerful operations: filtering, grouping, merging, pivoting
β€’ Widely used in data science, finance, ML, and business analytics

✨ Reflection
DataFrames are where Python starts feeling like a real data playground. Excited to explore filtering and analysis next! πŸš€

Python #Pandas #100DaysOfCode #DataAnalytics #DevCommunity

Top comments (0)