TypeError: Object of type int64 is not JSON serializable while converting to parquet file

Viewed 101

I have a data frame which looks something like this

enter image description here

I am trying the data to be in parquet file using

df4.to_parquet('df4.parquet.gzip',compression='gzip')

and getting TypeError: Object of type int64 is not JSON serializable

the column data types are

3
MANDT    object
QMNUM    object
QMART    object
QMTXT    object
ARTPR    object
PRIOK    object
ERNAM    object
ERDAT    object
AENAM    object
AEDAT    object
MZEIT    object
QMDAT    object
QMNAM    object
STRMN    object
STRUR    object
LTRMN    object
LTRUR    object
WAERS    object
AUFNR    object
VERID    object
dtype: object

Where 3 is the index name

0 Answers
Related