Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
26 views
3 pages
EDA With Pandas CheatSheet
Uploaded by
kollilokesh24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download
Save
Save EDA With Pandas CheatSheet For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
26 views
3 pages
EDA With Pandas CheatSheet
Uploaded by
kollilokesh24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save EDA With Pandas CheatSheet For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 3
Search
Fullscreen
Exploratory Data Analysis (EDA) with Pandas [CheatSheet]
### Importing Pandas
```python
import pandas as pd
```
### Loading Data
```python
df = pd.read_csv('file.csv') # Load a CSV file
df = pd.read_excel('file.xlsx') # Load an Excel file
df = pd.read_json('file.json') # Load a JSON file
```
### Basic Data Inspection
```python
df.head() # Display first 5 rows
df.tail() # Display last 5 rows
df.shape # Display number of rows and columns
df.info() # Display concise summary of the DataFrame
df.describe() # Generate descriptive statistics
df.columns # List all column names
df.dtypes # Display data type of each column
```
### Data Selection
```python
df['column_name'] # Select a single column
df[['col1', 'col2']] # Select multiple columns
df.iloc[0] # Select the first row
df.iloc[0:5] # Select the first 5 rows
df.loc[df['column'] > value] # Select rows based on column value condition
```
### Data Cleaning
```python
df.dropna() # Drop rows with missing values
df.fillna(value) # Fill missing values with a specific value
df.drop(columns=['col1', 'col2']) # Drop specific columns
df.rename(columns={'old_name': 'new_name'}) # Rename columns
df.duplicated() # Find duplicate rows
df.drop_duplicates() # Drop duplicate rows
```
### Data Transformation
```python
df['new_column'] = df['col1'] + df['col2'] # Create a new column
df.apply(lambda x: x + 1) # Apply a function to each element
df.groupby('column') # Group by a column
df.sort_values(by='column', ascending=False) # Sort by a column
df.pivot_table(index='col1', columns='col2', values='col3') # Pivot table
```
### Visualization (with Matplotlib)
```python
import matplotlib.pyplot as plt
df['column'].hist() # Histogram of a column
df.plot(kind='bar') # Bar plot
df.plot(kind='line') # Line plot
df.plot(kind='scatter', x='col1', y='col2') # Scatter plot
plt.show() # Display the plot
```
### Saving Data
```python
df.to_csv('file.csv', index=False) # Save DataFrame to a CSV file
df.to_excel('file.xlsx', index=False) # Save DataFrame to an Excel file
df.to_json('file.json') # Save DataFrame to a JSON file
```
You might also like
Data Cleaning - Cheatsheet
PDF
100% (2)
Data Cleaning - Cheatsheet
8 pages
Universal Data Analytics Algorithm
PDF
No ratings yet
Universal Data Analytics Algorithm
51 pages
EDA Cheat Sheet
PDF
No ratings yet
EDA Cheat Sheet
7 pages
Data Manipulation in Python Using Pandas
PDF
No ratings yet
Data Manipulation in Python Using Pandas
12 pages
Python For DS Cheat Sheet
PDF
100% (2)
Python For DS Cheat Sheet
6 pages
DAP 3 Module
PDF
No ratings yet
DAP 3 Module
62 pages
Project Final Report V 1.54
PDF
No ratings yet
Project Final Report V 1.54
88 pages
Justenoughpython Pandas 220915 175329
PDF
No ratings yet
Justenoughpython Pandas 220915 175329
64 pages
NumPy and Pandas Step
PDF
No ratings yet
NumPy and Pandas Step
9 pages
Python Cheat Sheet: Pandas - Numpy - Sklearn Matplotlib - Seaborn BS4 - Selenium - Scrapy
PDF
100% (4)
Python Cheat Sheet: Pandas - Numpy - Sklearn Matplotlib - Seaborn BS4 - Selenium - Scrapy
11 pages
Data Analysis With Python
PDF
No ratings yet
Data Analysis With Python
60 pages
Mcu - Pic24fv32ka304 - Microchip - Datasheet
PDF
No ratings yet
Mcu - Pic24fv32ka304 - Microchip - Datasheet
352 pages
Dataframe in Pandas - Cheatsheet
PDF
No ratings yet
Dataframe in Pandas - Cheatsheet
8 pages
Interactive Data Analysis With Jupyter Cheatsheet 1731972443
PDF
No ratings yet
Interactive Data Analysis With Jupyter Cheatsheet 1731972443
10 pages
Pandas Fuction Notes
PDF
No ratings yet
Pandas Fuction Notes
3 pages
Pandas Syntax Revision For ML
PDF
No ratings yet
Pandas Syntax Revision For ML
10 pages
EDA Cheat Sheet - Exploratory Data Analysis
PDF
No ratings yet
EDA Cheat Sheet - Exploratory Data Analysis
2 pages
1
PDF
No ratings yet
1
46 pages
Lit Exam
PDF
100% (2)
Lit Exam
56 pages
Pec 107 Lesson 1 Complete A-E
PDF
No ratings yet
Pec 107 Lesson 1 Complete A-E
17 pages
The Chimney Sweeper: When My Mother Died I Was Very Young
PDF
No ratings yet
The Chimney Sweeper: When My Mother Died I Was Very Young
6 pages
Data Engineer Interview 1740985064
PDF
No ratings yet
Data Engineer Interview 1740985064
14 pages
Cheat Sheet
PDF
No ratings yet
Cheat Sheet
15 pages
THEO DÕI HỌC VIÊN
PDF
No ratings yet
THEO DÕI HỌC VIÊN
7 pages
Eda Code Snippets
PDF
No ratings yet
Eda Code Snippets
17 pages
Analyze Translation Quality Rater by Rizky
PDF
No ratings yet
Analyze Translation Quality Rater by Rizky
10 pages
Python Cheatsheet
PDF
No ratings yet
Python Cheatsheet
3 pages
Pandas DataFrame Notes
PDF
No ratings yet
Pandas DataFrame Notes
10 pages
Pandas Tutorial
PDF
No ratings yet
Pandas Tutorial
9 pages
Comprehensive EDA Python Guide
PDF
No ratings yet
Comprehensive EDA Python Guide
13 pages
Concept Class 5 - New Pattern Based Questions Lyst7477
PDF
No ratings yet
Concept Class 5 - New Pattern Based Questions Lyst7477
14 pages
Pandas Cheat Sheet Free Resources At: Dataquest - Io/guide
PDF
No ratings yet
Pandas Cheat Sheet Free Resources At: Dataquest - Io/guide
7 pages
Exp3 Python
PDF
No ratings yet
Exp3 Python
15 pages
Course - Introduction To Data Science (SD211105)
PDF
No ratings yet
Course - Introduction To Data Science (SD211105)
10 pages
Bankers Algo - Os Lab
PDF
No ratings yet
Bankers Algo - Os Lab
7 pages
Pexip Infinity Release Notes V30.1.a
PDF
No ratings yet
Pexip Infinity Release Notes V30.1.a
13 pages
Exploratory Data Analysis (Eda) With Pandas: (Cheatsheet)
PDF
No ratings yet
Exploratory Data Analysis (Eda) With Pandas: (Cheatsheet)
7 pages
Q05.2 Group 6 Global Warming
PDF
No ratings yet
Q05.2 Group 6 Global Warming
14 pages
Comparative and Superlative Adjective
PDF
No ratings yet
Comparative and Superlative Adjective
5 pages
ELT Using Pandas
PDF
No ratings yet
ELT Using Pandas
5 pages
EDS - Python Cheat Sheet
PDF
0% (1)
EDS - Python Cheat Sheet
3 pages
Resiliensi Keluarga Pada Keluarga Yang Memiliki Anak Autis
PDF
No ratings yet
Resiliensi Keluarga Pada Keluarga Yang Memiliki Anak Autis
13 pages
J2EE Architecture
PDF
No ratings yet
J2EE Architecture
49 pages
Introduction To Pandas Programming 2
PDF
No ratings yet
Introduction To Pandas Programming 2
3 pages
Pandas Cheat Sheet
PDF
No ratings yet
Pandas Cheat Sheet
2 pages
Pandas Data Wrangling Cheatsheet Datacamp PDF
PDF
No ratings yet
Pandas Data Wrangling Cheatsheet Datacamp PDF
1 page
Pandas Cheat Sheet
PDF
No ratings yet
Pandas Cheat Sheet
5 pages
Intel's Haswell CPU Microarchitecture
PDF
No ratings yet
Intel's Haswell CPU Microarchitecture
17 pages
12 Pandas
PDF
No ratings yet
12 Pandas
9 pages
Pandas Data Manipulation Extended CheatSheet 1731972219
PDF
No ratings yet
Pandas Data Manipulation Extended CheatSheet 1731972219
9 pages
Pandas Dataframe All Operations 1735471870
PDF
No ratings yet
Pandas Dataframe All Operations 1735471870
4 pages
Strings (ALL PROGRAMS)
PDF
No ratings yet
Strings (ALL PROGRAMS)
4 pages
Class 11 Winter Holidays Homework 202425
PDF
No ratings yet
Class 11 Winter Holidays Homework 202425
3 pages
Content Pandas Cheat Sheet
PDF
No ratings yet
Content Pandas Cheat Sheet
9 pages
Pandas Notes Design
PDF
No ratings yet
Pandas Notes Design
5 pages
Pandas DataFrame Notes
PDF
100% (1)
Pandas DataFrame Notes
10 pages
Verbo CAN - Exercícios
PDF
No ratings yet
Verbo CAN - Exercícios
3 pages
ADU AS-3 S-5 Addendum 8502558 PDF
PDF
No ratings yet
ADU AS-3 S-5 Addendum 8502558 PDF
20 pages
Python Cheat Sheet For Excel Users
PDF
100% (2)
Python Cheat Sheet For Excel Users
5 pages
Jagamohana Ramayana: Early Medieval Recension From Bengal
PDF
No ratings yet
Jagamohana Ramayana: Early Medieval Recension From Bengal
3 pages
Pandas Cheat Sheet PDF
PDF
67% (3)
Pandas Cheat Sheet PDF
1 page
Pandas Commands
PDF
No ratings yet
Pandas Commands
3 pages
Cheat Sheet: The Pandas Dataframe Object: Preliminaries Get Your Data Into A Dataframe
PDF
100% (1)
Cheat Sheet: The Pandas Dataframe Object: Preliminaries Get Your Data Into A Dataframe
10 pages
Data Exploration Preparation
PDF
No ratings yet
Data Exploration Preparation
12 pages
Reading: Based On Tricia Hedge's "Teaching and Learning in The Language Classroom"
PDF
100% (1)
Reading: Based On Tricia Hedge's "Teaching and Learning in The Language Classroom"
22 pages
Pandas Cheat Sheet
PDF
100% (2)
Pandas Cheat Sheet
6 pages
Gnostic Doctrine Gnostic Christianity - Who Is Adam Kadmon
PDF
No ratings yet
Gnostic Doctrine Gnostic Christianity - Who Is Adam Kadmon
5 pages
Form, Structure, and Sense (Level 3) Answer Key
PDF
No ratings yet
Form, Structure, and Sense (Level 3) Answer Key
12 pages
Blockchain Shipment Management Tracking System: 1) Background/ Problem Statement
PDF
No ratings yet
Blockchain Shipment Management Tracking System: 1) Background/ Problem Statement
8 pages
Important Pandas Operations 1697910759
PDF
No ratings yet
Important Pandas Operations 1697910759
6 pages
Five Design Principles
PDF
No ratings yet
Five Design Principles
6 pages
EDA With Pandas
PDF
No ratings yet
EDA With Pandas
8 pages
Misa Santa Fe PDF
PDF
80% (5)
Misa Santa Fe PDF
26 pages
Pandas DataFrameObject
PDF
No ratings yet
Pandas DataFrameObject
4 pages
Pandas DataFrame Notes
PDF
No ratings yet
Pandas DataFrame Notes
13 pages
Pandas Cheat Sheet - Python For Data Science
PDF
No ratings yet
Pandas Cheat Sheet - Python For Data Science
5 pages
Commands SQL, Python (BASICS)
PDF
No ratings yet
Commands SQL, Python (BASICS)
7 pages
Cheat Sheet: The Pandas Dataframe Object I: Preliminaries Get Your Data Into A Dataframe
PDF
No ratings yet
Cheat Sheet: The Pandas Dataframe Object I: Preliminaries Get Your Data Into A Dataframe
12 pages
Sorting in ALV Using CL - SALV - TABLE - SAP Fiori, SAP HANA, SAPUI5, SAP Netweaver Gateway Tutorials, Interview Questions - SAP Learners
PDF
100% (1)
Sorting in ALV Using CL - SALV - TABLE - SAP Fiori, SAP HANA, SAPUI5, SAP Netweaver Gateway Tutorials, Interview Questions - SAP Learners
4 pages
Bondage Breaker Review
PDF
No ratings yet
Bondage Breaker Review
6 pages
Remote File Inclusion
PDF
0% (1)
Remote File Inclusion
7 pages
Data Science Cheat Sheet: KEY Imports
PDF
100% (1)
Data Science Cheat Sheet: KEY Imports
1 page
Python Cheat Sheets
PDF
97% (33)
Python Cheat Sheets
11 pages
Python Cheat Sheet Code Academy
PDF
100% (1)
Python Cheat Sheet Code Academy
1 page
Simplifying Data Science With Python
From Everand
Simplifying Data Science With Python
Billy David millican
No ratings yet
Lisp Interpreter in Rust
From Everand
Lisp Interpreter in Rust
Vishal Patil
1/5 (1)
Profound Python Data Science
From Everand
Profound Python Data Science
Onder Teker
No ratings yet
The Essential R Reference
From Everand
The Essential R Reference
Mark Gardener
No ratings yet
Introduction to PHP, Part 2, Second Edition
From Everand
Introduction to PHP, Part 2, Second Edition
Adam Majczak
No ratings yet
Computer Engineering Laboratory Solution Primer
From Everand
Computer Engineering Laboratory Solution Primer
Karan Bhandari
No ratings yet
Documents
Teaching Methods & Materials
Mathematics