-
-
Notifications
You must be signed in to change notification settings - Fork 575
Labels
component: tabulatorRelated to the Tabulator widgetRelated to the Tabulator widget
Milestone
Description
ALL software version info
(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc should be added within the dropdown below.)
Software Version Info
INSTALLED VERSIONS
------------------
commit : a671b5a8bf5dd13fb19f0e88edc679bc9e15c673
python : 3.10.14.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19045
machine : AMD64
processor : AMD64 Family 25 Model 97 Stepping 2, AuthenticAMD
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
panel: 1.6.2
pandas: 2.1.4
numpy: 1.23.5
ipython: 8.34.0
ipywidgets: 8.1.5
bokeh: 3.7.2
jupyterlab: 4.4.0
jupyter_bokeh: 4.0.5
Description of expected behavior and the observed behavior
Tabulators don't properly render when the DataFrame pass has both a multiindex index and multiindex columns. show_index=False results in the widget being totally blank, show_index=True results in all index entries being blank but the dataframe otherwise displaying properly.
Complete, minimal, self-contained example code that reproduces the issue
import itertools
import numpy as np
import pandas as pd
import panel as pn
pn.extension('tabulator')
places = ['New York', 'Chicago', 'London']
people = ['Alice', 'Bob', 'Charlie']
colors = ['Red', 'Green', 'Blue']
df = pd.DataFrame(itertools.product(places, people, colors), columns=['place', 'person', 'color'])
df['x1'] = np.random.normal(size=df.shape[0])
df['x2'] = np.random.normal(size=df.shape[0])
df = df.pivot(index=['place', 'person'], columns='color', values=['x1', 'x2'])
pn.widgets.Tabulator(df, show_index=False) # I get totally blank result
pn.widgets.Tabulator(df, show_index=True) # Index entries all blank, but otherwise Tabulator looks normalStack traceback and/or browser JavaScript console output
n/a
Screenshots or screencasts of the bug in action
- I may be interested in making a pull request to address this
Metadata
Metadata
Assignees
Labels
component: tabulatorRelated to the Tabulator widgetRelated to the Tabulator widget
