aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-12-27 20:33:14 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2023-12-27 20:33:14 +0530
commit1af02fb214ee2e3d00ec04a46e1d4877610b2818 (patch)
tree1c0034e0ad35ec0937adf9aed50c0d230ed73f86
parentbc2cb6cfb383d02e7019db2da5409ce2bcd7d610 (diff)
fix stdev only picking first value
-rw-r--r--api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.py b/api.py
index 3d99ae8..a52345f 100644
--- a/api.py
+++ b/api.py
@@ -124,7 +124,7 @@ async def create_plot(request: PlotDataRequest, data: Request):
# if request.std_dev_data exists, add to df
if len(request.std_dev_data) > 0:
- df["STD_DEV"] = request.std_dev_data[0]
+ df["STD_DEV"] = request.std_dev_data
x_data = ["X"]
y_data = ["Y"]