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
EDA Cheat Sheet - Exploratory Data Analysis
PDF
No ratings yet
EDA Cheat Sheet - Exploratory Data Analysis
2 pages
Pivot Table Exercise
PDF
No ratings yet
Pivot Table Exercise
115 pages
Pandas Cheat Sheet PDF
PDF
67% (3)
Pandas Cheat Sheet PDF
1 page
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
Lisp Interpreter in Rust
From Everand
Lisp Interpreter in Rust
Vishal Patil
1/5 (1)
Pandas Fuction Notes
PDF
No ratings yet
Pandas Fuction Notes
3 pages
EDA Cheat Sheet
PDF
No ratings yet
EDA Cheat Sheet
7 pages
Exploratory Data Analysis (Eda) With Pandas: (Cheatsheet)
PDF
No ratings yet
Exploratory Data Analysis (Eda) With Pandas: (Cheatsheet)
7 pages
Pandas Syntax Revision For ML
PDF
No ratings yet
Pandas Syntax Revision For ML
10 pages
Pandas Data Manipulation Extended CheatSheet 1731972219
PDF
No ratings yet
Pandas Data Manipulation Extended CheatSheet 1731972219
9 pages
EDS - Python Cheat Sheet
PDF
0% (1)
EDS - Python Cheat Sheet
3 pages
EDA With Pandas
PDF
No ratings yet
EDA With Pandas
8 pages
Pandas Cheat Sheet
PDF
No ratings yet
Pandas Cheat Sheet
5 pages
Data Exploration Preparation
PDF
No ratings yet
Data Exploration Preparation
12 pages
Data Science Cheat Sheet: KEY Imports
PDF
100% (1)
Data Science Cheat Sheet: KEY Imports
1 page
Important Pandas Operations 1697910759
PDF
No ratings yet
Important Pandas Operations 1697910759
6 pages
Python Cheat Sheet Code Academy
PDF
100% (1)
Python Cheat Sheet Code Academy
1 page
Python Cheat Sheets
PDF
97% (33)
Python Cheat Sheets
11 pages
Pandas Commands
PDF
No ratings yet
Pandas Commands
3 pages
Pandas Cheat Sheet - Python For Data Science
PDF
No ratings yet
Pandas Cheat Sheet - Python For Data Science
5 pages
Interactive Data Analysis With Jupyter Cheatsheet 1731972443
PDF
No ratings yet
Interactive Data Analysis With Jupyter Cheatsheet 1731972443
10 pages
Data Engineer Interview 1740985064
PDF
No ratings yet
Data Engineer Interview 1740985064
14 pages
Python Cheatsheet
PDF
No ratings yet
Python Cheatsheet
3 pages
Universal Data Analytics Algorithm
PDF
No ratings yet
Universal Data Analytics Algorithm
51 pages
Dataframe in Pandas - Cheatsheet
PDF
No ratings yet
Dataframe in Pandas - Cheatsheet
8 pages
Data Manipulation in Python Using Pandas
PDF
No ratings yet
Data Manipulation in Python Using Pandas
12 pages
Pandas DataFrame Notes
PDF
No ratings yet
Pandas DataFrame Notes
13 pages
Pandas Notes Design
PDF
No ratings yet
Pandas Notes Design
5 pages
Data Analysis With Python
PDF
No ratings yet
Data Analysis With Python
60 pages
Python For DS Cheat Sheet
PDF
100% (2)
Python For DS Cheat Sheet
6 pages
Pandas Tutorial
PDF
No ratings yet
Pandas Tutorial
9 pages
Exp3 Python
PDF
No ratings yet
Exp3 Python
15 pages
Pandas DataFrame Notes
PDF
100% (1)
Pandas DataFrame Notes
10 pages
Course - Introduction To Data Science (SD211105)
PDF
No ratings yet
Course - Introduction To Data Science (SD211105)
10 pages
Commands SQL, Python (BASICS)
PDF
No ratings yet
Commands SQL, Python (BASICS)
7 pages
Justenoughpython Pandas 220915 175329
PDF
No ratings yet
Justenoughpython Pandas 220915 175329
64 pages
Pandas Cheat Sheet
PDF
100% (2)
Pandas Cheat Sheet
6 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
2 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
Comprehensive EDA Python Guide
PDF
No ratings yet
Comprehensive EDA Python Guide
13 pages
ELT Using Pandas
PDF
No ratings yet
ELT Using Pandas
5 pages
Cheat Sheet
PDF
No ratings yet
Cheat Sheet
15 pages
Pandas Dataframe All Operations 1735471870
PDF
No ratings yet
Pandas Dataframe All Operations 1735471870
4 pages
NumPy and Pandas Step
PDF
No ratings yet
NumPy and Pandas Step
9 pages
Pandas DataFrame Notes
PDF
No ratings yet
Pandas DataFrame Notes
10 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
Pandas DataFrameObject
PDF
No ratings yet
Pandas DataFrameObject
4 pages
Content Pandas Cheat Sheet
PDF
No ratings yet
Content Pandas Cheat Sheet
9 pages
DAP 3 Module
PDF
No ratings yet
DAP 3 Module
62 pages
Python Cheat Sheet For Excel Users
PDF
100% (2)
Python Cheat Sheet For Excel Users
5 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
12 Pandas
PDF
No ratings yet
12 Pandas
9 pages
Introduction To Pandas Programming 2
PDF
No ratings yet
Introduction To Pandas Programming 2
3 pages
Eda Code Snippets
PDF
No ratings yet
Eda Code Snippets
17 pages
The Essential R Reference
From Everand
The Essential R Reference
Mark Gardener
No ratings yet
Computer Engineering Laboratory Solution Primer
From Everand
Computer Engineering Laboratory Solution Primer
Karan Bhandari
No ratings yet
Simplifying Data Science With Python
From Everand
Simplifying Data Science With Python
Billy David millican
No ratings yet
Introduction to PHP, Part 2, Second Edition
From Everand
Introduction to PHP, Part 2, Second Edition
Adam Majczak
No ratings yet
Profound Python Data Science
From Everand
Profound Python Data Science
Onder Teker
No ratings yet
Trade Theory Syllabus Copa
PDF
No ratings yet
Trade Theory Syllabus Copa
14 pages
Session 5
PDF
No ratings yet
Session 5
62 pages
It Skill Lab-2
PDF
No ratings yet
It Skill Lab-2
2 pages
Qlik Sense Tutorial Building An App 1735606393
PDF
No ratings yet
Qlik Sense Tutorial Building An App 1735606393
45 pages
DWBI Venky Final Print
PDF
No ratings yet
DWBI Venky Final Print
39 pages
MOS Excel 2010 - 77-882.
PDF
No ratings yet
MOS Excel 2010 - 77-882.
2 pages
Developing Spreadsheet-Based Decision Support Systems
PDF
100% (7)
Developing Spreadsheet-Based Decision Support Systems
1,398 pages
Computer Questions
PDF
No ratings yet
Computer Questions
107 pages
300 Examples Excel Example
PDF
No ratings yet
300 Examples Excel Example
15 pages
Computer Applications Practical: Microsoft Excel, Word, Powerpoint Worksheets
PDF
100% (1)
Computer Applications Practical: Microsoft Excel, Word, Powerpoint Worksheets
14 pages
Michelle Chi Presentation
PDF
No ratings yet
Michelle Chi Presentation
21 pages
My First Excel Assignment-2
PDF
No ratings yet
My First Excel Assignment-2
13 pages
Mso Excel (Notes)
PDF
No ratings yet
Mso Excel (Notes)
79 pages
IISE 2021 - Dashboard Guidelines
PDF
No ratings yet
IISE 2021 - Dashboard Guidelines
21 pages
Evans Analytics2e PPT 03
PDF
No ratings yet
Evans Analytics2e PPT 03
76 pages
Mis Interview Quetions
PDF
No ratings yet
Mis Interview Quetions
9 pages
Project Management Dashboard Non 365
PDF
No ratings yet
Project Management Dashboard Non 365
28 pages
Unit 4 Microsoft Excel in Business
PDF
No ratings yet
Unit 4 Microsoft Excel in Business
29 pages
CasesStudy PivotTable
PDF
No ratings yet
CasesStudy PivotTable
5 pages
Microsoft Excel Tips and Tricks
PDF
No ratings yet
Microsoft Excel Tips and Tricks
16 pages
Excel Test Advanced
PDF
No ratings yet
Excel Test Advanced
361 pages
MIS - Lab02 - Charts-Pivot Tables
PDF
No ratings yet
MIS - Lab02 - Charts-Pivot Tables
15 pages
Carpediemconsulting's Blog: Row Wise Initialized Variable in OBIEE 11g and VALUELISTOF Function
PDF
No ratings yet
Carpediemconsulting's Blog: Row Wise Initialized Variable in OBIEE 11g and VALUELISTOF Function
11 pages
5guidelines For Business Analytics Paper
PDF
No ratings yet
5guidelines For Business Analytics Paper
5 pages
7.ms Excel
PDF
No ratings yet
7.ms Excel
20 pages
Pivot Tables Mysql
PDF
No ratings yet
Pivot Tables Mysql
67 pages
Data Analytics Course Syllabus
PDF
No ratings yet
Data Analytics Course Syllabus
10 pages
Data Analytics With Financial Accounting Information: Winter 2022 Session 4
PDF
No ratings yet
Data Analytics With Financial Accounting Information: Winter 2022 Session 4
36 pages
Tutorial: Create An Excel Dashboard: Download The Example Dashboard
PDF
No ratings yet
Tutorial: Create An Excel Dashboard: Download The Example Dashboard
12 pages
Documents
Teaching Methods & Materials
Mathematics