Python 資料處理筆記:使用pandas-profiling快速分析資料

匯入模組與資料

import pandas as pd
import pandas_profiling
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
df = pd.read_csv("200811-201811.csv")

分析

profile = pandas_profiling.ProfileReport(df)

在Jupyter Notebook顯示成果

pandas_profiling.ProfileReport(df)

輸出成HTML

profile.to_file(outputfile="output.html") 

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store