Youโ€™re the Expert!

pynfinity

data-analysis

Data-Analysis

Your complete recipe for mastering Data-Analysis โ€” course modules & quick-reference guide in one place.

DA Recipe Module 3 sections

BASICS

Load a CSV File and Display Basic Information

Explore the concepts and examples below to master this topic.

Code Example
import pandas as pd
df = pd.read_csv("data.csv")
print(df.info())
print(df.head())
Video Walkthrough
Coming soon โ€” in-depth video explanation for this topic.

Filter DataFrame Based on Condition

Explore the concepts and examples below to master this topic.

Code Example
df_filtered = df[df['column_name'] > 50]
print(df_filtered)
Video Walkthrough
Coming soon โ€” in-depth video explanation for this topic.

INTERMEDIATE

Perform GroupBy and Aggregation

Explore the concepts and examples below to master this topic.

Code Example
df_grouped = df.groupby('category_column').agg({'value_column': 'mean'})
print(df_grouped)
Video Walkthrough
Coming soon โ€” in-depth video explanation for this topic.

Merge Two DataFrames Based on a Common Column

Explore the concepts and examples below to master this topic.

Code Example
df1 = pd.read_csv("data1.csv")
df2 = pd.read_csv("data2.csv")
df_merged = pd.merge(df1, df2, on='common_column', how='inner')
print(df_merged)
Video Walkthrough
Coming soon โ€” in-depth video explanation for this topic.

ADVANCED

Apply Custom Function to DataFrame Column

Explore the concepts and examples below to master this topic.

Code Example
def custom_function(x):
    return x * 2
df['new_column'] = df['existing_column'].apply(custom_function)
print(df.head())
Video Walkthrough
Coming soon โ€” in-depth video explanation for this topic.

Perform Time Series Analysis

Explore the concepts and examples below to master this topic.

Code Example
df['date_column'] = pd.to_datetime(df['date_column'])
df.set_index('date_column', inplace=True)
df_resampled = df.resample('M').mean()
print(df_resampled)
Video Walkthrough
Coming soon โ€” in-depth video explanation for this topic.
โšก Quick Reference โ€” Recipe

Use the reference cards below for fast lookup. Perfect for brushing up on syntax while you cook your code. ๐Ÿณ

Load a CSV File and Display Basic Information
import pandas as pd
df = pd.read_csv("data.csv")
print(df.info())
print(df.head())
Filter DataFrame Based on Condition
df_filtered = df[df['column_name'] > 50]
print(df_filtered)

Perform GroupBy and Aggregation
df_grouped = df.groupby('category_column').agg({'value_column': 'mean'})
print(df_grouped)
Merge Two DataFrames Based on a Common Column
df1 = pd.read_csv("data1.csv")
df2 = pd.read_csv("data2.csv")
df_merged = pd.merge(df1, df2, on='common_column', how='inner')
print(df_merged)

Apply Custom Function to DataFrame Column
def custom_function(x):
    return x * 2
df['new_column'] = df['existing_column'].apply(custom_function)
print(df.head())
Perform Time Series Analysis
df['date_column'] = pd.to_datetime(df['date_column'])
df.set_index('date_column', inplace=True)
df_resampled = df.resample('M').mean()
print(df_resampled)

Recipe Complete! ๐ŸŽ‰

You've explored the full Data-Analysis recipe.
Keep practising โ€” a language a day keeps AI away! ๐Ÿค–

Back to DA Courses


Pynfinity
Install Pynfinity Add to home screen for the best experience