Fixes #4638 usrates export file had blank data in value column (#4680)

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
Raghavendrapara
2023-04-11 02:49:54 +05:30
committed by GitHub
parent f42930744e
commit f30ee7e9a2

View File

@@ -1086,7 +1086,7 @@ def plot_usrates(
if raw:
# was a -iloc so we need to flip the index as we use head
df = pd.DataFrame(df, columns=[parameter])
df = pd.DataFrame(df, columns=[series_id])
df = df.sort_index(ascending=False)
print_rich_table(
df,
@@ -1101,7 +1101,7 @@ def plot_usrates(
export,
os.path.dirname(os.path.abspath(__file__)),
series_id,
pd.DataFrame(df, columns=[parameter]) / 100,
pd.DataFrame(df, columns=[series_id]) / 100,
sheet_name,
fig,
)