I posted my first Flask app (https://aqi-api.herokuapp.com/) on heroku and the code looks something like this:
from flask import Flask import pandas as pd imp