fix rm command (#4890)

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
This commit is contained in:
montezdesousa
2023-04-26 10:05:15 +01:00
committed by James Maslek
parent 7cba702226
commit 839638bf05
2 changed files with 2 additions and 3 deletions

View File

@@ -340,7 +340,6 @@ def display_roadmap(
)
df_copy = df_copy[df_copy["Date"].notnull()]
titles = list(df_copy[df_copy["Date"] > df_prices.index[0]]["Title"])
max_price = df_prices["Close"].max()
for counter, x in enumerate(roadmap_dates):
@@ -348,7 +347,7 @@ def display_roadmap(
fig.add_annotation(
x=x,
y=max_price * 0.7,
text=titles[counter],
text=df.iloc[counter]["Title"],
textangle=90,
font=dict(size=15),
xshift=10,

View File

@@ -307,7 +307,7 @@ def print_rich_table(
try:
if not isinstance(df[col].iloc[0], pd.Timestamp):
df[col] = pd.to_numeric(df[col])
except ValueError:
except (ValueError, TypeError):
pass
def _get_headers(_headers: Union[List[str], pd.Index]) -> List[str]: