We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ccc6dc commit 391a0b7Copy full SHA for 391a0b7
ipydatagrid/datagrid.py
@@ -404,10 +404,10 @@ def data(self):
404
def generate_data_object(dataframe, guid_key="ipydguuid", index_name="key"):
405
dataframe[guid_key] = pd.RangeIndex(0, dataframe.shape[0])
406
407
- # Renaming default index name from 'index' to 'id' on
+ # Renaming default index name from 'index' to 'key' on
408
# single index DataFrames. This allows users to use
409
- # 'index' as a column name. If 'id' exists, we add _x
410
- # suffix to id, where { x | 0 <= x <= inf }
+ # 'index' as a column name. If 'key' exists, we add _x
+ # suffix to id, where { x | 0 <= x < inf }
411
if not isinstance(dataframe.index, pd.MultiIndex):
412
if index_name in dataframe.columns:
413
index = 0
0 commit comments