Getting an error "OverflowError: long int too large to convert" when directly putting a table into pandas DataFrame. This seems to be due to the large numbers contained in the table, but there is no error trying on https://www.pythonanywhere.com/try-ipython/. I've added a workaround to convert the values to float and THEN created the DataFrame.
import pandas as pd
table = [{'two': 2, 'one': 1}, {'two': 22, 'one': 11},
{'two': 222, 'one': 1111111111111111111111111111111111111111111111111111111111111111111111}]
# workaround for overflow error
for x, i in enumerate(table):
table[x]['one']=float(table[x]['one'])
df = pd.DataFrame(table)
Is there a better way to do this? Others have pointed out that they do not get any overflow error. This is python 2.7