Cufflinks for plotly: setting cufflinks config options launches

前端 未结 5 1689
太阳男子
太阳男子 2021-01-05 06:02

I\'m trying to use cufflinks locally to generate plotly graphs from a pandas Dataframe

However, when I try and configure cufflinks in a python console,

5条回答
  •  失恋的感觉
    2021-01-05 06:27

    @elsherbini and @Charon: unfortunately I have not enough credentials to comment, so I have to write a new answer. your code pointed me into the right direction, but with the latest cufflinks version it goes even simpler:

    import cufflinks as cf
    df.iplot(kind='bar', barmode='stack', filename="my_barplot" , asPlot=True)
    

    This code will generate a my_barplot.html file and open the plot in the default web browser. And this code is scriptable.

提交回复
热议问题