Skip to content

[CDB-READER] Avoid duplicated sort_index() #72

Description

@StudioWEngineers

The following code can and should be optimized by avoiding duplicated sort_index():

# set indices for fast lookup
temp_df = (DataFrame(temp_list).set_index(["ID", "LOAD_CASE"], drop=False).sort_index())

if self._data.empty:
   self._data = temp_df
else:
   self._data = concat([self._data, temp_df]).sort_index()

Metadata

Metadata

Labels

CDB READERRelated to the cdb_reader subpackageENHANCEMENTNew feature or request

Projects

Status
Backlog

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions