Fixed issues with x axis ordering (#2391)

This commit is contained in:
Colin Delahunty
2022-08-22 17:05:51 -04:00
committed by GitHub
parent 6f2691b916
commit 582fc1b81e
2 changed files with 3 additions and 0 deletions

View File

@@ -297,6 +297,7 @@ def net_short_position(
else:
return
df = df.sort_values(by=["dates"])
ax1.bar(
df["dates"],
df["Net Short Vol. (1k $)"],

View File

@@ -440,6 +440,8 @@ def display_fundamentals(
fundamentals_plot_data = fundamentals_plot_data.replace(",", "", regex=True)
fundamentals_plot_data = fundamentals_plot_data.replace("-", "-1")
fundamentals_plot_data = fundamentals_plot_data.astype(float)
fundamentals_plot_data = fundamentals_plot_data.drop(["ttm"])
fundamentals_plot_data = fundamentals_plot_data.sort_index()
if not ratios:
maximum_value = fundamentals_plot_data.max().max()