cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Dataframes with ipywidgets.Output is Adding Unexpected Commas

yhyhy3
New Contributor III

I am currently working in a databricks notebook and using an ipywidgets.Output to display a pandas Dataframe. Because spark.DataFrame cannot be displayed in an ipywidgets.Output widget, I have been using:

import pandas as pd
import numpy as np
import ipywidgets
from IPython.display import display
df = pd.DataFrame(
  np.random.randint(0, 5, size=(4, 4))
)
output = ipywidgets.Output()
with output:
  display(df)

output

This has been working until recently on the 13.2 ML runtime. However, recently, I moved to a different cluster still using the same 13.2 ML runtime and am now getting a bunch of commas prepended to my html output (see screenshot). The larger the dataframe, the longer the number of commas. How can I fix this issue?

1 REPLY 1

cm04
New Contributor III

I have this issue also, and the listed steps do not resolve it.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now