I have some functions that should send on URL by flask. At first I want to assign a argument to function by get from a psth. My code:
app= Flask(__name__)
@app.route('/')
def hello (x):
x=data
return f"{x}"
data =pd.read_csv("Path\\file.csv")
Unfortunately I receive this Error in my url:
TypeError: hello() missing 1 required positional argument: 'x'
This function works out of flask method routinely. How can I assign argument (x) to the function??? I'm stressful because I should present a report to my supervisor. Thanks a lot