我无法在datetime64[ns]
值的NaT
列上进行批量插入,
我在做,
session.bulk_insert_mappings(SamExtract, df[:1000].to_dict(orient="records"))
它抛出,
sqlalchemy.exc.DataError: (psycopg2.DataError) invalid input syntax for type timestamp: "NaT"
LINE 1: ... 'NaN'::float, false, false, false, false, false, 'NaT'::tim...
然后
psycopg2.DataError: invalid input syntax for type timestamp: "NaT"
LINE 1: ... 'NaN'::float, false, false, false, false, false, 'NaT'::tim...