datacamp / datacamp-light

Convert any blog or website to an interactive learning platform for data science
GNU Affero General Public License v3.0
1.3k stars 355 forks source link

HTML-views of Pandas DataFrames? #105

Open kmader opened 5 years ago

kmader commented 5 years ago

The current output for a pandas dataframe is the IPython rendering which is not particularly aesthetically pleasing and making some of the more interesting visualizations (color, size, bar, ...) hard to show. Is there any way of having the HTML versions show up (like in Jupyter notebooks)

How it looks now

image

How I would like it look

from IPython.display import HTML
import pandas as pd, numpy as np
out_df = pd.DataFrame({'hey': np.random.uniform(0,10, size = 5)})
HTML(out_df.to_html())

(from thebelab) image

rv2e commented 5 years ago

Currently, Datacamp can display special outputs such as plots, HTML widgets and so on. Unfortunately, it's not the case yet for html-views of Pandas Dataframes in Datacamp-light. We will consider this feature in the roadmap. Thanks for the issue.