Jupyter notebook Setup / Sharpen graphs

PHOTO EMBED

Sat Oct 29 2022 22:51:37 GMT+0000 (Coordinated Universal Time)

Saved by @janduplessis883 #plot #jupyter #template

# Importing Libraries
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import seaborn as sns

# Dataprep for exploratory data analysis
from dataprep.eda import create_report
from dataprep.eda import plot, plot_correlation, plot_missing

# mport Regressor Metric Graph Plot - for ML analysis
from regressormetricgraphplot import *

# Set style to 'seaborn / Plot inline
plt.style.use('seaborn')
%matplotlib inline
%config InlineBackend.figure_format = 'retina'


# Load Dataframe
df = pd.read_csv('path/to/file.csv')
df.head()

df.isna().sum()
df.drop_duplicates(inplace = True)
df.info()
df.describe()

# Generate Dataprep Report
report = create_report(df, title='My Report')
create_report()

plot(df, col1, col2)

# df sortby
df.sort_values(by=[col1, col2], ascending=[True, True])

# df groupby
df.groupby(col).mean()
content_copyCOPY