| 1234567891011 |
- import pandas as pd
- def summary_dataframe(df:pd.DataFrame,df_name:str):
- with pd.option_context('display.max_rows', None,'display.max_columns', None,'display.width',500):
- print('#'*20+f' Data Summary : {df_name} '+'#'*20)
- print(df.describe().round(2).T)
- def print_dataframe(df:pd.DataFrame,df_name:str):
- with pd.option_context('display.max_rows', None,'display.max_columns', None,'display.width',500):
- print('#'*20+f' Data : {df_name} '+'#'*20)
- print(df)
|