Last Updated: November 21, 2025
Creating DataFrames
import pandas as pd\n\ndf = pd.read_csv('data.csv')\ndf = pd.DataFrame({'col1': [1,2], 'col2': [3,4]})
Viewing
df.head()
First 5 rows
df.info()
DataFrame info
df.describe()
Statistics
💡 Pro Tip:
Use df.copy() to avoid modifying originals!