Skip to content

Instantly share code, notes, and snippets.

@lakshmiprabharamesh
Created February 8, 2022 03:21
Show Gist options
  • Select an option

  • Save lakshmiprabharamesh/b2257bec2149316fa25e524a084506f7 to your computer and use it in GitHub Desktop.

Select an option

Save lakshmiprabharamesh/b2257bec2149316fa25e524a084506f7 to your computer and use it in GitHub Desktop.
General Import the necessary packages - pandas, numpy, seaborn, matplotlib.pyplot
#Import essential packages
# Pandas a python library used for data manupilation and analysis
import pandas as pd
# Numpy a python library used for mathematical operations on arrays
import numpy as np
# Matplotlib is a library used for plts and visualizations
import matplotlib.pyplot as plt
#Seaborn Library is based on matplotlib and used for visualizations
import seaborn as sns
# adding nice backgrounds to graphs
sns.set(color_codes=True)
#Asking python to ignore warnings
import warnings
warnings.filterwarnings("ignore")
# asking python to display the graphs
%matplotlib inline
pd.set_option('display.float_format', lambda x: '%.5f' % x) # supressing numerical display in scientific notations
@lakshmiprabharamesh
Copy link
Author

Its mostly used for doing EDA for any dataset.
The above imports helps to get better looking charts and avoids warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment