# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # Assignment 2 - Plotting with Python

import seaborn as sns
from plotly import data
import matplotlib.pyplot as plt

# ### Matplotlib
#
# Plot all questions below using `matplotlib` library.

# Make a dataframe for `iris` dataset and show first few rows.

iris = data.iris()

# Using `iris` dataset, make a **line chart** where 
# - x represents row indexes 
# - y represents `sepal_length`



# Using `iris` dataset, make a **scatter chart** where 
# - x represents `sepal_length`
# - y represents `petal_length`



# Using `iris` dataset, make a **scatter chart** where 
# - x represents `sepal_length`
# - y represents `petal_length`
# - add colorbar for `species_id`.



# Using `iris` dataset, **make a figure with 2 subplots**.
#
# 1. Make a **scatter chart** where 
# - x represents `sepal_length`
# - y represents `sepal_width`
# - add color of `red`.
#
# 2. Make a **scatter chart** where 
# - x represents `petal_length`
# - y represents `petal_width`
# - add color of `red`.



# ### Seaborn

# Using `iris` dataset: 
#
# - make scatter chart
# - make jointplot
# - make boxplot
# - make violinplot
# - make swarmplot
# - make pairplot



# Plot the following dataset:
#
# - make line chart
# - add a moving average



# ### Plotly

# Using datasets below. Make at least 3 different figures from each using plotly.

tips = data.tips()
carshare = data.carshare()



# ## References

# - https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.scatter.html
# - https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.plot.html
# - https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplots.html
# - https://plotly.com/python/basic-charts/
# - https://seaborn.pydata.org/api.html

StarcoderdataJupyterScriptsDedupFiltered