updated with csv name in code generation
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ Always save generated plot as 'graph.html'
|
|
99 |
Always return just code no need of ```
|
100 |
|
101 |
Your Task is help user get result of query about below dataset,Decide based on user query to make Plot or Just Textual Answer.
|
102 |
-
Here is the metadata of the dataset and name of dataset is
|
103 |
|
104 |
Columns: {metadata['columns']}
|
105 |
Dtypes: {metadata['dtypes']}
|
@@ -120,7 +120,7 @@ Question: Get the average age of the customers
|
|
120 |
Thought: I need to run a query to get the average age of the customers
|
121 |
|
122 |
Action: runcode: import pandas as pd
|
123 |
-
df=pd.read_csv('./
|
124 |
age = df['age'].mean()
|
125 |
print(age)
|
126 |
|
|
|
99 |
Always return just code no need of ```
|
100 |
|
101 |
Your Task is help user get result of query about below dataset,Decide based on user query to make Plot or Just Textual Answer.
|
102 |
+
Here is the metadata of the dataset and name of dataset is Financial_Sample.csv:
|
103 |
|
104 |
Columns: {metadata['columns']}
|
105 |
Dtypes: {metadata['dtypes']}
|
|
|
120 |
Thought: I need to run a query to get the average age of the customers
|
121 |
|
122 |
Action: runcode: import pandas as pd
|
123 |
+
df=pd.read_csv('./Financial_Sample.csv')
|
124 |
age = df['age'].mean()
|
125 |
print(age)
|
126 |
|