Python MySQLdb converters isn't working
I'm trying to run an ETL script using python and MySQLdb but I'm stuck with the results from my initial extract query. The types returned are all Long and Decimal when I want Int and Float. I've searched around for a few hours trying to get an answer to this without any success. database = MySQLdb.connect(host='db',user='user', passwd='password', db='db123') database_cursor = database.cursor() database_query = ("SELECT id, siteId, campaignId, hour, sum(impressions) AS impressions, " "sum(clicks) AS clicks, sum(conversions) AS conversions, sum(costs/1000000) AS revenue " "FROM database.DM