drop duplicates (#1705)

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
This commit is contained in:
LBolte29
2022-04-17 23:48:14 +02:00
committed by GitHub
parent f0911fa75f
commit d76de3eade

View File

@@ -48,9 +48,11 @@ def upcoming_earning_release_dates(num_pages: int, num_earnings: int, export: st
# bigger market cap. Didier attempted this with yfinance, but
# the computational time involved wasn't worth pursuing that solution.
df_earn = df_earnings[earning_date == df_earnings.index][
["Ticker", "Name"]
].dropna()
df_earn = (
df_earnings[earning_date == df_earnings.index][["Ticker", "Name"]]
.dropna()
.drop_duplicates()
)
if export:
l_earnings_dates.append(earning_date.date())