Working with Data
Working with Data
Section titled “Working with Data”Learn how to transform, clean, and analyze data in your projects.
Data Transformations
Section titled “Data Transformations”Filter
Section titled “Filter”Remove rows based on conditions:
Column: salesCondition: greater thanValue: 1000Select Columns
Section titled “Select Columns”Choose which columns to keep or remove
Calculate
Section titled “Calculate”Add new columns with formulas:
revenue = quantity * priceprofit_margin = (revenue - cost) / revenue * 100Group By
Section titled “Group By”Aggregate data by categories:
Group by: regionAggregate: SUM(sales), AVG(price)Combine data from multiple sources:
- Inner join
- Left join
- Right join
- Full outer join
Data Quality
Section titled “Data Quality”Handle Missing Values
Section titled “Handle Missing Values”- Remove rows with nulls
- Fill with default value
- Forward/backward fill
Remove Duplicates
Section titled “Remove Duplicates”Identify and remove duplicate rows
Data Types
Section titled “Data Types”Convert columns to correct types:
- Text → Number
- Text → Date
- Number → Text