vicuna-13b· LMSYS
Arena Human Preference 55K
Using Django, Python, Pandas and TA-lib, this code works: df = pd.readcsv('curData.csv')…
- User
Using Django, Python, Pandas and TA-lib, this code works: df = pd.read_csv('curData.csv') return JsonResponse({"result":True,'data':df.values.tolist(),'columns':df.columns.tolist()})
codeBut this code dosn't work: df = pd.read_csv('curData.csv') df['RSI'] = ta.RSI(df['close'],14) return JsonResponse({"result":True,'data':df.values.tolist(),'columns':df.columns.tolist()}) - Assistant
The issue with your code is that it is not properly formatting the data before returning it as a JSON response.
You can add the following code to properly format the data before returning it:
scss
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.