From 0bddeaa8fb46ab8f81d9bba22d609d36f19c97e6 Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Wed, 24 May 2023 09:26:01 -0600 Subject: drop row if symbol or name is null --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 6a30a1b..300691d 100644 --- a/main.py +++ b/main.py @@ -45,6 +45,8 @@ class CompanySelector: return self.df = pd.read_excel(file_path) + self.df = self.df[self.df['Company Name'].notna()] + self.df = self.df[self.df['Symbol'].notna()] self.show_companies() def show_companies(self): -- cgit v1.2.3