Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import numpy as np
- np.random.seed([3,1415])
- df = pd.DataFrame(np.random.randn(100, 10), columns=list('ABCDEFGHIJ'))
- df.describe()
- d1 = df.mask(np.random.choice([True, False], df.shape, p=[.2, .8]))
- d1.describe()
- d1.stack().groupby(level=1).describe().unstack(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement