“Transcendental-Programmer” commited on
Commit
a23ffc6
·
1 Parent(s): 96f3483

feat: added sample data

Browse files
Files changed (2) hide show
  1. data/sample_data.csv +6 -0
  2. data_processor.py +2 -1
data/sample_data.csv ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ Year,Sales,Employee expense,Net profit,EBITDA,EBIT,RoCE,interest,WC %
2
+ 2020,1000,200,100,300,250,10,50,5
3
+ 2021,1200,220,150,350,300,12,55,6
4
+ 2022,1400,250,200,400,350,15,60,7
5
+ 2023,1600,270,250,450,400,18,65,8
6
+ 2024,1800,300,300,500,450,20,70,9
data_processor.py CHANGED
@@ -9,7 +9,8 @@ class DataProcessor:
9
  if data_path and os.path.exists(data_path):
10
  self.data_path = data_path
11
  else:
12
- self.data_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data', 'sample_data.xlsx')
 
13
  self.data = self.load_data(self.data_path)
14
 
15
  def load_data(self, path):
 
9
  if data_path and os.path.exists(data_path):
10
  self.data_path = data_path
11
  else:
12
+ # Use the new sample_data.csv with all required columns
13
+ self.data_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data', 'sample_data.csv')
14
  self.data = self.load_data(self.data_path)
15
 
16
  def load_data(self, path):