The most important experience I have gained in the data science project is a systematic order of project. As long as you follow this order, you can understand what you did, or what you will do in the next step. So how should we apply this order in the project? I explained the whole system as short notes, but if you want to understand what these sections mean at first, why we need 7 step for the data science project, I suggest that you continue reading this blog post.
Let me briefly explain what this life cycle is.

1. 𝑩𝒖𝒔𝒊𝒏𝒆𝒔𝒔 𝑼𝒏𝒅𝒆𝒓𝒔𝒕𝒂𝒏𝒅𝒊𝒏𝒈
Before solving a problem, it is necessary to see a problem. You can understand the problem with questions such as “What should I solve?”, “What is the source of this problem?”.
2. 𝑫𝒂𝒕𝒂 𝑴𝒊𝒏𝒊𝒏𝒈
Well, we understood the problem, but what do we need to solve this problem? Of course, we should get the data. In my opinion, the best sources for data are Kaggle and Google Dataset Search. However, if you are going to work on a data science project for a company, you do not have the option of choosing data. I’m sorry for that.
3. 𝑫𝒂𝒕𝒂 𝑪𝒍𝒆𝒂𝒏𝒊𝒏𝒈
If you have a strong data which is over 25 columns and 140,000 rows, then you have almost no chance of having a clean data. Therefore, you need to handle the missing data, duplicate data etc in order to get the best result from the data.
- Data Dropping
- You should drop row uniqueness (duplicates).
- You should drop column uniqueness (singletons).
- You should drop illogical rows.
- You should drop null-target rows.
- Data Splitting
- If you don’t have validation.csv or test.csv dataset file, you should split the the data as validation, and test. However, I should remind the important point about validation. If you have large dataset, I recommend you split the data as 3 part (train, validation and test). On the other hand, if you have small dataset, I recommend you split the data as 2 part. (train, test)
- Outlier Handling
- Firstly, you should find the outliers of each feature. After that, you should remove or convert the outliers depends on your data.
- Missing Data Handling
- When you handle the missing data in your dataset, the process you should do depends on features of each columns in the dataset such as low, moderate, high, extreme. You cannot fill the all missing values with mean, median or mode. Each feature of dataset has own specialty, so you have to act accordingly.
4. 𝑫𝒂𝒕𝒂 𝑬𝒙𝒑𝒍𝒐𝒓𝒂𝒕𝒊𝒐𝒏
It is a good point to find out that you are on the right path after handling the missing data. In this section, data is partially visualized, but this is only to determine if you are on the right path.
- Exploratory Data Analysis (EDA)
- Univariate Analysis – only on one variable
- Continuous Variables
- Central Tendency – Mean, Median, Mode, Min, Max
- Measure of Dispersion – Range, Quartile, IQR, Variance, Standard Deviation, Skewness and Kurtosis
- Visualization Methods – Histogram, Box Plot
- Categorical Variables
- Frequency Table
- Continuous Variables
- Bi-variate Analysis – relationship between target variable and 2 variables in the dataset
- Continuous & Continuous
- Scatter Plot, Pearson Correlation, Correlation Heat -map
- Categorical & Categorical
- Stacked Column Chart, Chi-Square Test, Violin Plot, Cramer-V correlation
- Categorical & Continuous
- Z- Test / T-Test, ANOVA
- Continuous & Continuous
- Multivariate Analysis– relationship between different fields in the dataset, more than 2 variables
- 3D Scatter Plot / Pair Plot
- Univariate Analysis – only on one variable
5. 𝑭𝒆𝒂𝒖𝒕𝒖𝒓𝒆 𝑬𝒏𝒈𝒊𝒏𝒆𝒆𝒓𝒊𝒏𝒈
So how do I know which feature is important in this data set? Feature importance is a very good guide at this point.
- Confirmatory Data Analysis (CDA)
- Feature Selection ( Which feature is important?)
- Pearson’s Correlation for Continuous Features
- Chi- Square Test for Categorical Features
- Linear Discriminant Analysis (LDA) for one Categorical Dependent Feature and more than two Continuous Independent Features
- ANOVA (Analysis of variance) for one Continuous Dependent Feature, and more than two Categorical Independent Features
- Feature Selection ( Which feature is important?)
6. 𝑷𝒓𝒆𝒅𝒊𝒄𝒕𝒊𝒗𝒆 𝑴𝒐𝒅𝒆𝒍𝒊𝒏𝒈
And now we have to start preparing the model. This is obviously something that depends on your data. Whatever data (categorical, date, numerical) you have, the model you use will change accordingly.
- Data Transformation and Encoding
- Transformation (Scaling Numerical Variables)
- Encoding Categorical Variables
- Estimator / Classifier Selection
- K – Nearest Neighbours (KNN)
- Naive Bayes
- Logistic Regression
- Support Vector Machines (SVM)
- Neural Networks
- Multi – Layer Perceptron (MLP)
- Convolutional Neural Networks (CNN)
- Recurrent Neural Networks (RNN)
- Ensembled Classifiers
- Random Forest
- Gradient Boosting
- Model Selection (Hyperparameter)
7. 𝑫𝒂𝒕𝒂 𝑽𝒊𝒔𝒖𝒂𝒍𝒊𝒛𝒂𝒕𝒊𝒐𝒏
The final step. You have almost finished the whole project, but you need to make it understandable. So, you need to visualize this data for the employer or people.
- Visualization of Statistical – Numerical Data
- Scatter Plot / relplot
- Visualization of Categorical Data
- Jitter Plot / Swarm Plot / Box Plot / Violin Plot / Bar Plot / Point Plot
- Visualization of Univariate Distributions
- Histogram / Dist Plot (using Seaborn)
- Visualization of Bi-variate Distributions
- Joint Plot (Hex plot / KDE Plot) / Heatmap / Cat Plot (Boxen Plot) – Ridge Plot
- Visualization of Multivariate Distributions
- Pair Plot
Summary
The cycle in data science projects consists entirely of properly making sense of the data you have. The better you understand the data, and the better you can explain it to others through supplementary tools, then you have succeeded.
Resources:
- Notes of Çağlar Subaşı who is my teacher in Applied Data Science Bootcamp course through kodluyoruz
- What is Data Science?
- A Complete Tour Of Data Science Project Life Cycle
- Introduction to Feature Selection methods with an example (or how to select the right variables?)
- Exploratory Data Analysis(beginner) , Univariate , Bivariate and Multivariate — Habberman dataset.
- 15 Data Exploration techniques to go from Data to Insights
- A Comprehensive Guide to Data Exploration
- Become a Data Visualization Whiz with this Comprehensive Guide to Seaborn in Python
Leave a Reply