shrutisd1003 commited on
Commit
b3e3dbd
1 Parent(s): 98d2c44

bugs fixed

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. data_transformer.py +1 -1
  3. requirements.txt +2 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from data_visualizer import DataVisualizer
7
  from data_QA import DataQA
8
 
9
  def main():
10
- st.title('Dataset Explorer')
11
 
12
  data_loader = DataLoader()
13
  data,uploaded_file = data_loader.load_data()
 
7
  from data_QA import DataQA
8
 
9
  def main():
10
+ st.title('Insights 📶')
11
 
12
  data_loader = DataLoader()
13
  data,uploaded_file = data_loader.load_data()
data_transformer.py CHANGED
@@ -9,6 +9,6 @@ class DataTransformer:
9
  column_operation = st.sidebar.text_input('Column operation (e.g., age * 2)')
10
  if column_operation:
11
  column, operation = column_operation.split()
12
- self.data[column] = self.data[column].apply(lambda x: eval(operation))
13
  st.write(self.data)
14
  return self.data
 
9
  column_operation = st.sidebar.text_input('Column operation (e.g., age * 2)')
10
  if column_operation:
11
  column, operation = column_operation.split()
12
+ self.data[column] = self.data[column].apply(lambda x: eval(str(x) + operation))
13
  st.write(self.data)
14
  return self.data
requirements.txt CHANGED
@@ -5,4 +5,5 @@ matplotlib
5
  seaborn
6
  langchain-google-genai
7
  langchain-experimental
8
- python-dotenv
 
 
5
  seaborn
6
  langchain-google-genai
7
  langchain-experimental
8
+ python-dotenv
9
+ tabulate