Plotting multiple scatter plots pandas

后端 未结 4 1295
一向
一向 2020-12-11 14:54

I think there are many questions on plotting multiple graphs but not specifically for this case as shown below.

The pandas documentation says to \'repeat plot method

4条回答
  •  心在旅途
    2020-12-11 15:14

    Inside the holoviz ecosystem, there is a library called hvplot which provides very nice high-level plotting functionality (on top of holoviews) that works out of the box with Pandas:

    import numpy as np
    import hvplot.pandas
    
    df = pd.DataFrame(np.random.randn(100, 6), columns=['a', 'b', 'c', 'd', 'e', 'f'])
    
    df.hvplot(x='a', y=['b', 'c', 'd', 'e'], kind='scatter')
    

提交回复
热议问题