Skip to content

Commit 391a0b7

Browse files
ibdafnagaborbernat
authored andcommitted
Fix typos/update comments
Signed-off-by: Itay Dafna <[email protected]>
1 parent 7ccc6dc commit 391a0b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipydatagrid/datagrid.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ def data(self):
404404
def generate_data_object(dataframe, guid_key="ipydguuid", index_name="key"):
405405
dataframe[guid_key] = pd.RangeIndex(0, dataframe.shape[0])
406406

407-
# Renaming default index name from 'index' to 'id' on
407+
# Renaming default index name from 'index' to 'key' on
408408
# 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 }
409+
# 'index' as a column name. If 'key' exists, we add _x
410+
# suffix to id, where { x | 0 <= x < inf }
411411
if not isinstance(dataframe.index, pd.MultiIndex):
412412
if index_name in dataframe.columns:
413413
index = 0

0 commit comments

Comments
 (0)