Skip to main content

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)

Matplotlib sample

# 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

Iris DataFrame

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')

Output Slide 1 Output Slide 2

#plsfix

Email ryu@mba2021.hbs.edu for feedback.

Project details


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 details)

Uploaded Source

Built Distribution

consultify-0.0.2.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file consultify-0.0.2.4.tar.gz.

File metadata

  • Download URL: consultify-0.0.2.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for consultify-0.0.2.4.tar.gz
Algorithm Hash digest
SHA256 6dab34d67cc9ed7fe392ae87bc73bb393f79682b7817ee7f1fddcadcf65de616
MD5 8df321a8994e05c66e05e3d0dc3de6f1
BLAKE2b-256 d920a391419d284204e27c80798837df0aa87d18d2595a09652251bc3889d0bc

See more details on using hashes here.

File details

Details for the file consultify-0.0.2.4-py3-none-any.whl.

File metadata

  • Download URL: consultify-0.0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for consultify-0.0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ec0f95ad1c5c640d38d731ee80f25d65b26c07aedf234d5f997c0118fc727d71
MD5 9c13b6e6da1432ff3b786bc13ad936dd
BLAKE2b-256 8048e34cb2b93107887631263a8fab9cc109030b76a000378b05d5296d62299e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page