Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 18614
Kernel: Python 3

Simple tests

use this to experiment with jupyter

df = pd.DataFrame(hugo.participants_metadatas())
df.columns
Index(['chapter-leader', 'chapter_leader', 'company', 'email', 'eventbrite_id', 'facebook', 'featured', 'funded_who', 'image', 'job-title', 'job_title', 'layout', 'linkedin', 'linkedin-company-beta', 'night_day', 'night_room', 'night_where', 'notes', 'post-summit', 'pre-summit', 'pre_summit', 'project-leader', 'project_leader', 'regonline', 'role', 'sessions', 'slack_id', 'sponsored_by', 'status', 'ticket', 'title', 'tracks', 'travel-from', 'travel_from', 'twitter', 'type', 'venue', 'villa', 'website', 'working-sessions'], dtype='object')
Index(['chapter-leader', 'chapter_leader', 'company', 'email', 'eventbrite_id', 'facebook', 'featured', 'funded_who', 'image', 'job-title', 'job_title', 'layout', 'linkedin', 'linkedin-company-beta', 'night_day', 'night_room', 'night_where', 'notes', 'post-summit', 'pre-summit', 'pre_summit', 'project-leader', 'project_leader', 'regonline', 'role', 'sessions', 'slack_id', 'sponsored_by', 'status', 'ticket', 'title', 'tracks', 'travel-from', 'travel_from', 'twitter', 'type', 'venue', 'villa', 'website', 'working-sessions'], dtype='object')
%matplotlib inline df_plot = df.groupby(['company','status']).size().round().unstack().fillna(0) df_plot.plot(kind='barh',figsize=(10,10),stacked=True, table=False)
<matplotlib.axes._subplots.AxesSubplot at 0x7fd8932862b0>
Image in a Jupyter notebook
sys.path
['../../../api', '../../api', '../api', './api', '/home/jovyan/notebooks/setup', '/opt/conda/lib/python37.zip', '/opt/conda/lib/python3.7', '/opt/conda/lib/python3.7/lib-dynload', '', '/opt/conda/lib/python3.7/site-packages', '/opt/conda/lib/python3.7/site-packages/IPython/extensions', '/home/jovyan/.ipython']