I'm trying to read in json files into dataframes.
df = pd.read_json('test.log', lines=True)
However there are values which are int64 and Pandas raises:
ValueError: Value is too big
I tried setting precise_float to True, but this didn't solve it.
It works when I do it line by line:
df = pd.DataFrame()
with open('test.log') as f:
for line in f:
data = json.loads(line)
df = df.append(data, ignore_index=True)
However this is very slow. Already for files around 50k lines it takes a very long time.
Is there a way I can set the value of certain columns to use int64?