0% found this document useful (0 votes)
11 views3 pages

Python Libraries

The document provides an overview of popular Python data visualization libraries such as Matplotlib, Seaborn, and Plotly, highlighting their specific uses. It also includes a cheat sheet for data analytics in Python, covering key operations like importing libraries, loading data, cleaning, manipulating, and visualizing data. Additionally, it offers basic statistics and exporting data techniques.

Uploaded by

arjunbiju472
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
0% found this document useful (0 votes)
11 views3 pages

Python Libraries

The document provides an overview of popular Python data visualization libraries such as Matplotlib, Seaborn, and Plotly, highlighting their specific uses. It also includes a cheat sheet for data analytics in Python, covering key operations like importing libraries, loading data, cleaning, manipulating, and visualizing data. Additionally, it offers basic statistics and exporting data techniques.

Uploaded by

arjunbiju472
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

PYTHON FOR DATA ANALYTICS

Here are the most popular Python data visualization libraries with their use:

📊 Top Python Data Visualization Libraries


1.​ Matplotlib​
→ Basic plots (line, bar, pie, scatter). Most widely used and highly customizable.​

2.​ Seaborn​
→ Built on Matplotlib; easier and more beautiful statistical plots (heatmaps, violin
plots, etc).​

3.​ Plotly​
→ Interactive and web-based charts (zoom, hover, etc). Great for dashboards.​

4.​ Altair​
→ Declarative visualization library; quick and clean visuals for statistical data.​

5.​ Bokeh​
→ Interactive and live-updating visualizations for web applications.​

6.​ ggplot (ggpy)​


→ Based on R’s ggplot2; grammar-of-graphics approach.​

7.​ Pandas Visualization​


→ Quick plots directly from DataFrames using .plot() (uses Matplotlib
underneath).​

8.​ Holoviews​
→ Simplifies building complex plots; works with Bokeh and Matplotlib.​

9.​ Geopandas​
→ For geospatial visualizations (maps, regions, coordinates).​

10.​Dash (by Plotly)​


→ Used for building interactive data apps using Plotly charts.​
🧠 Python for Data Analytics Cheat Sheet
1️⃣ Importing Key Libraries

import pandas as pd # For data manipulation

import numpy as np # For numerical operations

import [Link] as plt # For basic plotting

import seaborn as sns # For advanced plotting

2️⃣ Loading Data

df = pd.read_csv('[Link]') # Load CSV

[Link]() # View first 5 rows

[Link]() # Data types & nulls

[Link]() # Summary stats

3️⃣ Data Cleaning

[Link]() # Remove missing values

[Link](0) # Replace missing values

[Link]().sum() # Find duplicates

df.drop_duplicates() # Remove duplicates

4️⃣ Data Manipulation

df['new_col'] = df['a'] + df['b'] # New column

df.sort_values('col', ascending=False) # Sort

[Link]('category').mean() # Groupby stats

df['col'].value_counts() # Frequency
5️⃣ Exploratory Data Analysis (EDA)

[Link]() # Correlation matrix

[Link]([Link](), annot=True) # Heatmap

[Link](x='category', y='value', data=df) # Outlier check

[Link](df['col']) # Distribution

6️⃣ Visualization

[Link](df['date'], df['sales']) # Line chart

[Link](df['product'], df['revenue']) # Bar chart

[Link](df['col'].value_counts()) # Pie chart

7️⃣ Basic Statistics

df['col'].mean() # Mean

df['col'].median() # Median

df['col'].std() # Std deviation

df['col'].value_counts() # Frequency

8️⃣ Exporting Data

df.to_csv('[Link]', index=False)

Follow for useful content -


Instagram - [Link]
Linkedin - [Link]/in/dr-aditi-gupta
Youtube - [Link]

You might also like