datacamp-light icon indicating copy to clipboard operation
datacamp-light copied to clipboard

HTML-views of Pandas DataFrames?

Open kmader opened this issue 6 years ago • 1 comments

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

kmader avatar Aug 27 '18 16:08 kmader

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.

rv2e avatar Aug 28 '18 14:08 rv2e