Update app.py
Browse files
app.py
CHANGED
@@ -213,7 +213,7 @@ if prompt:
|
|
213 |
new_line = "\n"
|
214 |
|
215 |
parameters = {"font.size": 12,"figure.dpi": 600}
|
216 |
-
|
217 |
template = f"""```python
|
218 |
import pandas as pd
|
219 |
import matplotlib.pyplot as plt
|
@@ -230,7 +230,7 @@ import uuid
|
|
230 |
# df.dtypes
|
231 |
{new_line.join(map(lambda x: '# '+x, str(df_check.dtypes).split(new_line)))}
|
232 |
|
233 |
-
{
|
234 |
"""
|
235 |
query = f"""I have a pandas dataframe data of PM2.5 and PM10.
|
236 |
* The columns are 'Timestamp', 'station', 'PM2.5', 'PM10', 'address', 'city', 'latitude', 'longitude',and 'state'.
|
|
|
213 |
new_line = "\n"
|
214 |
|
215 |
parameters = {"font.size": 12,"figure.dpi": 600}
|
216 |
+
|
217 |
template = f"""```python
|
218 |
import pandas as pd
|
219 |
import matplotlib.pyplot as plt
|
|
|
230 |
# df.dtypes
|
231 |
{new_line.join(map(lambda x: '# '+x, str(df_check.dtypes).split(new_line)))}
|
232 |
|
233 |
+
{new_line.join(['# '+line for line in prompt.strip().split(new_line)])}
|
234 |
"""
|
235 |
query = f"""I have a pandas dataframe data of PM2.5 and PM10.
|
236 |
* The columns are 'Timestamp', 'station', 'PM2.5', 'PM10', 'address', 'city', 'latitude', 'longitude',and 'state'.
|