Skip to content

Commit

Permalink
Move variable declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Sep 28, 2021
1 parent 03e0a38 commit 6d90895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cudf/cudf/_lib/parquet.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ cpdef read_parquet(filepaths_or_buffers, columns=None, row_groups=None,

# Access the Parquet user_data json to find the index
index_col = None
is_range_index = False
cdef map[string, string] user_data = c_out_table.metadata.user_data
json_str = user_data[b'pandas'].decode('utf-8')
meta = None
is_range_index = False
if json_str != "":
meta = json.loads(json_str)
if 'index_columns' in meta and len(meta['index_columns']) > 0:
Expand Down

0 comments on commit 6d90895

Please sign in to comment.