Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- def describex(data):
- data = pd.DataFrame(data)
- stats = data.describe()
- skewness = data.skew()
- kurtosis = data.kurtosis()
- skewness_df = pd.DataFrame({'skewness':skewness}).T
- kurtosis_df = pd.DataFrame({'kurtosis':kurtosis}).T
- return stats.append([kurtosis_df,skewness_df])
Add Comment
Please, Sign In to add comment