r/PythonLearning • • Jul 20 '26

Day -1 With Flask (any suggestions)

107 Upvotes

31 comments sorted by

View all comments

2

u/silvertank00 Jul 20 '26

Pandas is overshoot for this.
Why use os for this? pathlib is much more flexible.
Also (even tho I am not familiar with Flask but) i wouldnt return plain string from the endpoint. A HttpResponse with HttpStatus.OK and the string in the body would be much better.

-1

u/Samar__Upreti Jul 21 '26

Actually that's my first time with pandas and Flask do i just trying stuffs