Convert Pandas DataFrame to Image
Project description
dataframe_to_image
Python package to convert a Pandas DataFrame to a Image that could be used to share dataframe (as an image) in sheets, notes and slides.
Example usage:
import pandas as pd
from dataframe_to_image import dataframe_to_image
#creating the dataframe
df = pd.DataFrame()
df['date'] = ['2021-06-01', '2021-06-02', '2021-06-03']
df['calories'] = [1950, 2100, 1500]
df['sleep hours'] = [9, 7.5, 8.2]
df['gym'] = [True, False, False]
#converting to image
dataframe_to_image.convert(df,visualisation_library='matplotlib')
Once you have the image ready, you can right click on the image and click 'Save image as' to save the image of your dataframe (when using matplotlib). For Plotly, you can just click on the camera icon on the top right to save your image.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dataframe_to_image-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c8745dae82b36682c36f5b0685a347b087a8b9cb0036ccd27f97ef276c7b18a |
|
MD5 | 0e2605ff0c7d3d4afe580ab2d3aeebc1 |
|
BLAKE2b-256 | 00698fb2c6e8f0a89064058ef14e264078bed5742128d7b15c142b9cb55ee739 |