Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df.describe(include=[np.number]).T
- dims = df.describe(include=[pd.Categorical]).T
- # Add percent frequency for top dimension
- dims["frequency"] = dims["freq"].div(dims["count"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement