mongo-arrow icon indicating copy to clipboard operation
mongo-arrow copied to clipboard

Casting timestamp in find_panads_all()

Open OS1ZA opened this issue 2 years ago • 1 comments
trafficstars

Hi, i'm facing this issue when to try make my mongo collection into pandas dataframe using the find_pandas_all() function

authors_pyarrow = Schema({"_id": ObjectId, "first_name": pyarrow.string(), "last_name": pyarrow.string(), "date_of_birth": datetime})

df = production_db.author.find_pandas_all({}, schema=authors_pyarrow) print(df.head())

OS1ZA avatar Mar 04 '23 16:03 OS1ZA

Thanks for reporting this issue, can you please elaborate? What's the issue? If there's an error, please include the entire error traceback. If the issue is unexpected data, please include the actual data vs. the data you expected.

ShaneHarvey avatar Mar 06 '23 20:03 ShaneHarvey