Turns analyses on Python into management consulting-style PowerPoint slides.
Project description
The So-What
consultify allows users to turn analyses on Python into PowerPoint slides, following the conventions of standard management consulting slides.
Installation
pip install consultify
Sample Usage
# Get sample image from Matplotlib
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import urllib.request
urllib.request.urlretrieve('https://matplotlib.org/_images/sphx_glr_bar_stacked_001.png', 'sample.png')
img = mpimg.imread('sample.png')
plt.axis('off')
plt.imshow(img)
# Create sample pandas DataFrame
import pandas as pd
from sklearn.datasets import load_iris
data = load_iris()
df = pd.DataFrame(data.data, columns=data.feature_names)
df = df.head(5)
df
from consultify import consultify
prs = consultify.make_deck()
consultify.add_slide(prs, slide_title='The highest scores were achieved in Game 2', image_filepath='sample.png', textbox_filled_space = 0.25, textbox_font_size = 20, title_font_size = 32, slide_text=
"""Insight # 1
Insight # 2
Insight # 3""")
consultify.add_marvin_table_slide(prs, df, title_font_size = 28, slide_title = 'These are the first five rows of the classic Iris Dataset')
consultify.save_deck(prs, filepath='./210117 SteerCo Deck.pptx')
#plsfix
Email ryu@mba2021.hbs.edu for feedback.
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
consultify-0.0.2.4.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for consultify-0.0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec0f95ad1c5c640d38d731ee80f25d65b26c07aedf234d5f997c0118fc727d71 |
|
MD5 | 9c13b6e6da1432ff3b786bc13ad936dd |
|
BLAKE2b-256 | 8048e34cb2b93107887631263a8fab9cc109030b76a000378b05d5296d62299e |