Skip to content

Commit 34352f4

Browse files
committed
Add small workaround for integer indices
1 parent 68cba78 commit 34352f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ipydatagrid/datagrid.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,9 @@ def data(self, dataframe):
10171017
# Not making a copy in the streaming grid
10181018
self.__dataframe_reference = dataframe
10191019

1020+
# TODO support column indices being integers
1021+
dataframe.columns = dataframe.columns.map(str)
1022+
10201023
# Primary key used
10211024
index_key = self.get_dataframe_index(dataframe)
10221025

0 commit comments

Comments
 (0)