Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
gtopper committed Jan 8, 2024
1 parent 5b46ae2 commit 3037aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/py/v3io_frames/pbutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def df2msg(df, labels=None, index_cols=None):
indices = None
if index_cols is not None:
# if there is already an index set, we want to preserve it.
if not (type(df.index) == pd.RangeIndex and df.index.name is None):
if not (isinstance(df.index, pd.RangeIndex) and df.index.name is None):
df.reset_index(inplace=True)
indices = [series2col(df[name], name) for name in index_cols]
cols = [col for col in df.columns if col not in index_cols]
Expand Down

0 comments on commit 3037aca

Please sign in to comment.