Skip to content

Commit

Permalink
fix rm command (#4890)
Browse files Browse the repository at this point in the history
Co-authored-by: Henrique Joaquim <[email protected]>
  • Loading branch information
montezdesousa and hjoaquim authored Apr 26, 2023
1 parent 130942b commit 0d7318b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions openbb_terminal/cryptocurrency/due_diligence/messari_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,14 @@ 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):
if x > df_prices.index[0]:
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,
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/helper_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 0d7318b

Please sign in to comment.