python - How to plot DataFrame column value in different shape based on other column value -


i still new python plot. let have created dataframe follows demo. want

(1) plot 'value' column value in different color&symbol based on label column in 1 figure, i.e, in different groups in hope of finding different pattern.

(2) cluster each group (based on label column) different bins(e.g, 5 bins , 3 bin respectively) , put them in new figure.

import numpy np import pandas pd mu, sigma = 0, 0.1 theta = 0.3 s = np.random.normal(mu, sigma, 100) group = np.random.binomial(1, theta, 100) df = pd.dataframe(np.vstack([s,group]).transpose()) df.columns = ['value','label'] 


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -