Skip to content

Commit

Permalink
Update financial.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thinh-vu authored Jul 27, 2024
1 parent 0a2d7b6 commit aa95ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnstock3/explorer/vci/financial.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _get_ratio_dict(self, show_log:Optional[bool]=False, get_all:Optional[bool]=
df.columns = [camel_to_snake(col) for col in df.columns]
effective_get_all = get_all if get_all is not None else self.get_all
selected_columns = ['field_name', 'name', 'en__name', 'type', 'order', 'unit']
df['unit'] = df['unit'].map(_UNIT_MAPPING)
df['unit'] = df['unit'].map(_UNIT_MAP)
if effective_get_all is False:
df = df[selected_columns]
df.columns = [col.replace('__', '_') for col in df.columns]
Expand Down

0 comments on commit aa95ee5

Please sign in to comment.