If you wanna define the columns in that order (which I’m suspecting is what you actually want) place the data in an OrderedDict instead of a dict literal on line 46 of your scraper.py. You’re gonna have to clear the database on morph.io before the changes can take effect.