-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.txt
28 lines (23 loc) · 908 Bytes
/
config.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# configs and utilities
%matplotlib inline
%config InlineBackend.figure_format="retina"
import pandas as pd
pd.set_option('display.precision', 4)
pd.options.display.float_format = '{:.4f}'.format
pd.plotting.register_matplotlib_converters()
from pandas import DataFrame, Series
import numpy as np
import scipy.stats as stats
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(style='ticks', font_scale=1.25, color_codes=True,
rc={'figure.figsize': (10, 7), 'axes.spines.top': False, 'axes.spines.right': False,})
# sns.set(font_scale=1.25, color_codes=True, rc={'figure.figsize': (7, 7)})
# cells can have multiple outputs
from IPython.core.interactiveshell import InteractiveShell
from IPython.display import display
InteractiveShell.ast_node_interactivity = "all"
def df_info(df):
display(df.info(verbose=True))
display(df.describe(include='all'))
display(df.head(10))