All I want to do is get context_answers and treatment_answers from my web user inputs and bring it on the Flask. (I am very new to this, sorry that I am a vague about what I am doing)
`context_answers = {"a":[1], "b":[2], "c":[3], "d":[4]}
treatment_answers = {"y":[10]}`
I was able to get context_answers doing following:
`methods: {
handleSubmit() {
axios.post("/submit_survey", this.context_answers)
}
}`
and on the Flask
`@app.route("/submit_survey", methods=["POST"])
def submit_survey():
context = request.get_json(force=True)
context_df = pd.DataFrame.from_dict(context)`
But how do you get this.treatments_answers in the same axios post method? and in the submit_survey?
I want to create a data frame that has following:
a b c d y
1 2 3 4 10
Thank you so much!
context_answersandtreatments_answers) and what you'd like the received data to look like in your Flask app