summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-05-24 09:26:01 -0600
committernavanchauhan <navanchauhan@gmail.com>2023-05-24 09:26:01 -0600
commit0bddeaa8fb46ab8f81d9bba22d609d36f19c97e6 (patch)
tree0f0af1dab7f7b40a234573c2d815fb53fb385605 /main.py
parent0c4abd5d9ad0f5b150b2859e3c58de4862f9bf1c (diff)
drop row if symbol or name is null
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 2 insertions, 0 deletions
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):