Python & Pandas : TypeError: to_sql() got an unexpected keyword argument 'flavor'
Based on the documentation 0.22 and 0.24.1, the flavor does not exist in the argument list of the to_sql method. You're probably running the 0.24.1 version which does not need flavor argument.