mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
Fixed issues with x axis ordering (#2391)
This commit is contained in:
@@ -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 $)"],
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user