Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Report: 71% of tech leaders won’t hire devs without AI skills

      July 17, 2025

      Slack’s AI search now works across an organization’s entire knowledge base

      July 17, 2025

      In-House vs Outsourcing for React.js Development: Understand What Is Best for Your Enterprise

      July 17, 2025

      Tiny Screens, Big Impact: The Forgotten Art Of Developing Web Apps For Feature Phones

      July 16, 2025

      Too many open browser tabs? This is still my favorite solution – and has been for years

      July 17, 2025

      This new browser won’t monetize your every move – how to try it

      July 17, 2025

      Pokémon has partnered with one of the biggest PC gaming brands again, and you can actually buy these accessories — but do you even want to?

      July 17, 2025

      AMD’s budget Ryzen AI 5 330 processor will introduce a wave of ultra-affordable Copilot+ PCs with its mobile 50 TOPS NPU

      July 17, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The details of TC39’s last meeting

      July 18, 2025
      Recent

      The details of TC39’s last meeting

      July 18, 2025

      Reclaim Space: Delete Docker Orphan Layers

      July 18, 2025

      Notes Android App Using SQLite

      July 17, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      KeySmith – SSH key management

      July 17, 2025
      Recent

      KeySmith – SSH key management

      July 17, 2025

      Pokémon has partnered with one of the biggest PC gaming brands again, and you can actually buy these accessories — but do you even want to?

      July 17, 2025

      AMD’s budget Ryzen AI 5 330 processor will introduce a wave of ultra-affordable Copilot+ PCs with its mobile 50 TOPS NPU

      July 17, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Machine Learning»Complete Guide: Working with CSV/Excel Files and EDA in Python

    Complete Guide: Working with CSV/Excel Files and EDA in Python

    April 11, 2025
    Complete Guide: Working with CSV/Excel Files and EDA in Python

    This hands-on tutorial will walk you through the entire process of working with CSV/Excel files and conducting exploratory data analysis (EDA) in Python. We’ll use a realistic e-commerce sales dataset that includes transactions, customer information, inventory data, and more.

    Table of contents

    • Introduction
    • Setting Up Your Environment
    • Understanding Our Dataset
    • Reading Excel Files
      • Reading Specific Rows or Columns
    • Basic Data Exploration
    • Data Cleaning and Preparation
    • Merging and Joining Data
    • Exploratory Data Analysis
      • Sales Performance Analysis
    • Data Visualization
      • Basic Visualizations
    • Conclusion

    Introduction

    Data analysis is an essential skill in today’s data-driven world. In this tutorial, we’ll learn how to:

    • Import data from Excel files
    • Clean and preprocess data
    • Explore and analyze data through statistics and visualization
    • Draw meaningful insights from business data

    We’ll be using several key Python libraries:

    • pandas: For data manipulation and analysis
    • numpy: For numerical operations
    • matplotlib and seaborn: For data visualization

    Setting Up Your Environment

    First, let’s install the necessary libraries:

    • openpyxl and xlrd are backends that pandas uses to read Excel files
    • Import the libraries in your Python script:

    Understanding Our Dataset

    Our sample dataset represents an e-commerce company’s sales data. It contains five sheets:

    1. Sales_Data: Main transactional data with 1,000 orders
    2. Customer_Data: Customer demographic information
    3. Inventory: Product inventory details
    4. Monthly_Summary: Pre-aggregated monthly sales data
    5. Data_Issues: A sample of data with intentional quality problems for practice

    You can download the dataset here

    Reading Excel Files

    Now that we have our dataset, let’s start by reading the Excel file:

    You should see output showing the available sheets and their dimensions.

    Reading Specific Rows or Columns

    Sometimes you might only want to read specific parts of a large Excel file:

    Basic Data Exploration

    Let’s explore our sales data to understand its structure and contents:

    Let’s look at the distribution of orders across different categories and regions:

    Data Cleaning and Preparation

    Let’s practice data cleaning using the “Data_Issues” sheet, which was specifically created with common data problems:

    Now let’s clean the data:

    Let’s also clean our main sales data:

    Merging and Joining Data

    Now let’s combine data from different sheets to gain richer insights:

    Let’s also join inventory data to analyze product-level metrics:

    Exploratory Data Analysis

    Now let’s perform some meaningful exploratory data analysis to understand our business:

    Sales Performance Analysis

    Customer Segment Analysis

    Payment Method Analysis

    Return Rate Analysis

    Cross-Tabulation Analysis

    Correlation Analysis

    Data Visualization

    Now let’s create visualizations to better understand our data:

    Basic Visualizations

    Advanced Visualizations with Seaborn

    Complex Visualizations

    Conclusion

    In this tutorial, we explored the full workflow of handling CSV and Excel files in Python, from importing and cleaning raw data to conducting insightful exploratory data analysis (EDA). Using a realistic e-commerce dataset, we learned how to merge and join datasets, handle common data quality issues, and extract key business insights through statistical analysis and visualization. We also covered essential Python libraries like pandas, NumPy, matplotlib, and seaborn. By the end, you should be equipped with practical EDA skills to transform raw data into actionable insights for real-world applications.

    The post Complete Guide: Working with CSV/Excel Files and EDA in Python appeared first on MarkTechPost.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleRoR-Bench: Revealing Recitation Over Reasoning in Large Language Models Through Subtle Context Shifts
    Next Article Together AI Released DeepCoder-14B-Preview: A Fully Open-Source Code Reasoning Model That Rivals o3-Mini With Just 14B Parameters

    Related Posts

    Machine Learning

    How to Evaluate Jailbreak Methods: A Case Study with the StrongREJECT Benchmark

    July 18, 2025
    Machine Learning

    Implementing on-demand deployment with customized Amazon Nova models on Amazon Bedrock

    July 17, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-50200 – RabbitMQ Basic Authentication Header Logging Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-25251 – FortiClient Mac Incorrect Authorization Privilege Escalation Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Introduction to MCP: The Ultimate Guide to Model Context Protocol for AI Assistants

    Machine Learning

    CVE-2025-26691 – OpenHarmony Information Leak

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    CVE-2025-5199 – Canonical Multipass Privilege Escalation Vulnerability

    July 11, 2025

    CVE ID : CVE-2025-5199

    Published : July 12, 2025, 12:15 a.m. | 52 minutes ago

    Description : In Canonical Multipass up to and including version 1.15.1 on macOS, incorrect default permissions allow a local attacker to escalate privileges by modifying files executed with administrative privileges by a Launch Daemon during system startup.

    Severity: 7.3 | HIGH

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    Marks & Spencer ransomware attack was good news for other retailers

    June 24, 2025

    This top-rated Dyson hair dryer is on sale for the lowest price yet on Amazon

    May 22, 2025

    CVE-2025-5969 – D-Link DIR-632 HTTP POST Request Handler Stack-Based Buffer Overflow Vulnerability

    June 11, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.