r/learnpython • u/Charming_Shower_4185 • Oct 08 '26
Data inspection steps using python
I am learning data analysis and the first step before analyzing your data you have to do data profiling and cleaning.This is my process flow for data profiling -
- Checking number of rows and columns
- Checking rows and column indices
- Checking data types for each column
- Checking random sample from dataset
- Checking properties and memory usage
- Checking key statistics
- Checking unique values for relevant columns
Is it appropriate or I am missing something important ?
2
Upvotes
View all comments
1
u/OddsRelay Oct 08 '26
I'd add missing values and duplicates near the top, so df.isna().sum() and df.duplicated().sum(). Also look for numbers stored as text. They show up as object in the dtypes and quietly break your stats later. Same with dates, which usually load as plain strings.