The easiest way to share data science insights

Datapane is a Python framework for building beautiful data science documents for your company, clients, or community.

Report Example

Build and share interactive data reports using Python

Datapane makes sharing Python analyses easy: build rich reports in Python, publish them to the web, and share them with your community, team, or clients.

Build and publish reports in Python

Build beautiful reports from blocks of DataFrames, plots, and files without leaving Python. Publish to Datapane to share and embed them online.

  • 1
    Analyse data in your own tools

    Write code and analyze data in your own editor or environment, whether its Jupyter, Colab, or Airflow.

  • 2
    Build reports in code

    Datapane's framework makes it easy to create rich reports from DataFrames, output files, and libraries like Altair and Plotly.

  • 3
    Publish and share

    Export as standalone HTML files, or publish to Datapane, where your reports can be shared and embedded.

A Report on Datapane

  1. import pandas as pd
  2. import altair as alt
  3. import datapane as dp
  4. df = pd.read_csv('https://covid.ourworldindata.org/data/vaccinations/vaccinations-by-manufacturer.csv', parse_dates=['date'])
  5. df = df.groupby(['vaccine', 'date'])['total_vaccinations'].sum().tail(1000).reset_index()
  6. plot = alt.Chart(df).mark_area(opacity=0.4, stroke='black').encode(
  7. x='date:T',
  8. y=alt.Y('total_vaccinations:Q'),
  9. color=alt.Color('vaccine:N', scale=alt.Scale(scheme='set1')),
  10. tooltip='vaccine:N'
  11. ).interactive().properties(width='container')
  12. total_df = df[df["date"] == df["date"].max()].sort_values("total_vaccinations", ascending=False).reset_index(drop=True)
  13. total_styled = total_df.style.bar(subset=["total_vaccinations"], color='#5fba7d', vmax=total_df["total_vaccinations"].sum())
  14. dp.Report(
  15. "## Vaccination Report",
  16. dp.Plot(plot, caption="Vaccinations by manufacturer over time"),
  17. dp.Table(total_styled, caption="Current vaccination totals by manufacturer"),
  18. dp.Table(df, caption="Initial Dataset")
  19. ).publish(name='Covid Vaccinations Demo {{ name }}',
  20. description="Covid Vaccinations report, using data from ourworldindata", open=True)

Featured Reports

Share and learn from reports built by Datapane's community of data storytellers.

Explore more reports →

Datapane Free report publishing and sharing.

Datapane is a free way to learn, publish, and share data science reports from Python. Sign-up for free to build your first report.

App screenshot

Datapane Enterprise API-first data science sharing platform.

Automate data science reporting and share insights with clients or stakeholders.

App screenshot