1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-09-12 16:54:59 +00:00

updated all packages to newest versions

This commit is contained in:
2020-04-10 02:38:34 -07:00
parent e1ff4a3d56
commit f213f1e7e7
3 changed files with 21 additions and 26 deletions

View File

@@ -39,9 +39,7 @@ class Symbol:
symbols.sort_values(by="Match", ascending=False, inplace=True)
if symbols["Match"].head().sum() < 300:
symbols["Match"] = symbols.apply(
lambda x: fuzz.partial_ratio(
search.lower(), f"{x['Symbol']} {x['Issue_Name']}".lower()
),
lambda x: fuzz.partial_ratio(search.lower(), x["Issue_Name"].lower()),
axis=1,
)
symbols.sort_values(by="Match", ascending=False, inplace=True)