jmcnamara / pandas_xlsxwriter_charts

Using Pandas and XlsxWriter to create Excel charts

Home Page:https://pandas-xlsxwriter-charts.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Pandas and XlsxWriter to create Excel charts

An introduction to the creation of Excel files with charts using [Pandas](<http://pandas.pydata.org) and XlsxWriter.

    import pandas as pd

    ...

    writer = pd.ExcelWriter('farm_data.xlsx', engine='xlsxwriter')
    df.to_excel(writer, sheet_name='Sheet1')

    workbook = writer.book
    worksheet = writer.sheets['Sheet1']

    chart = workbook.add_chart({'type': 'column'})

    ...

Chart image

See the full document at ReadTheDocs.

About

Using Pandas and XlsxWriter to create Excel charts

https://pandas-xlsxwriter-charts.readthedocs.io/

License:Other


Languages

Language:Python 77.3%Language:Makefile 14.7%Language:CSS 8.0%