Basic Data Processing

Full data processing tutorial: Click Here

पूरा डेटा प्रोसेसिंग ट्यूटोरियल: यहाँ क्लिक करें

Practical Project: Basic Data Processing Tasks

प्रैक्टिकल प्रोजेक्ट: बेसिक डेटा प्रोसेसिंग टास्क

In this project, beginners will learn how to handle data in Python. It covers reading data from files, cleaning missing values, basic transformations, and summarizing results.

इस प्रोजेक्ट में शुरुआती लोग Python में डेटा को हैंडल करना सीखेंगे। इसमें फाइल से डेटा पढ़ना, missing values साफ़ करना, बेसिक transformations और परिणामों का सारांश बनाना शामिल है।

Step 1: Reading Data
Reading Data
import pandas as pd

# Read CSV file
data = pd.read_csv("data.csv")
print(data.head())

Using pandas, we can easily read CSV files and view the first few rows.

Pandas का उपयोग करके हम आसानी से CSV फाइल पढ़ सकते हैं और पहले कुछ rows देख सकते हैं।

Step 2: Handling Missing Values
Handling Missing Values
# Handle missing values
data = data.fillna(0)
print("Missing values replaced with 0")

We replace missing values with 0 to ensure calculations run smoothly.

Missing values को 0 से बदलकर हम सुनिश्चित करते हैं कि कैलकुलेशन सही तरीके से चले।

Step 3: Basic Transformations
Basic Transformations
# Add a new column
data["Total"] = data["Math"] + data["Science"]
print(data.head())

This adds a new column "Total" by summing two other columns. Transformation is essential in data processing.

यह "Total" नाम का नया कॉलम जोड़ता है जो दो अन्य कॉलमों को जोड़कर बनाया गया है। Transformation डेटा प्रोसेसिंग में महत्वपूर्ण है।

Step 4: Summarizing Data
Summarizing Data
# Summarize data
print("Average Total:", data["Total"].mean())
print("Maximum Total:", data["Total"].max())

We calculate average and maximum values to understand the dataset better.

हम average और maximum values निकालते हैं ताकि dataset को बेहतर तरीके से समझा जा सके।

Enjoyed this data processing project? Share with your network!