Our collaborative repository for studying Python Pandas, where we'll research and learn about this powerful data analysis library.
pip install pandas
import pandas as pd
data = {'Name': ['Alice', 'Bob', 'Charlie'],
'Age': [25, 30, 35]} ``
df = pd.DataFrame(data)
# View the first few rows of the DataFrame
print(df.head())
# Check information about the DataFrame
print(df.info())
# Summary statistics of the DataFrame
print(df.describe())
# Selecting a column
names = df['Name']
# Selecting multiple columns
subset = df[['Name', 'Age']]
# Selecting rows based on a condition
adults = df[df['Age'] >= 30]