Skip to content

Commit 26516d7

Browse files
committed
Appease linter
Signed-off-by: Itay Dafna <[email protected]>
1 parent c2a87b6 commit 26516d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ipydatagrid/datagrid.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,18 +378,18 @@ def data(self):
378378
@staticmethod
379379
def generate_data_object(dataframe, guid_key="ipydguuid"):
380380
dataframe[guid_key] = pd.RangeIndex(0, dataframe.shape[0])
381-
382-
# Renaming default index name from 'index' to 'id' on
381+
382+
# Renaming default index name from 'index' to 'id' on
383383
# single index DataFrames. This allows users to use
384384
# 'index' as a column name. If 'id' exists, we add _x
385385
# suffix to id, where { x | 0 <= x <= inf }
386386
if not isinstance(dataframe.index, pd.MultiIndex):
387387
if "id" in dataframe.columns:
388388
index = 0
389-
new_index_name = f'id_{index}'
389+
new_index_name = f"id_{index}"
390390
while new_index_name in dataframe.columns:
391391
index += 1
392-
new_index_name = f'id_{index}'
392+
new_index_name = f"id_{index}"
393393
dataframe = dataframe.rename_axis(new_index_name)
394394
else:
395395
dataframe = dataframe.rename_axis("id")

0 commit comments

Comments
 (0)