I'm trying to concatenate two DataFrames (called firstData and lastData) created from SQL queries. However, when I try to concatenate them, I get an error that says TypeError: can't compare datetime.datetime to int. Judging by this message, I'm thinking the issue is the concatenation with the AUTHORIZED field. Dummy data with what the data frame looks like is below. Any thoughts on how to get around this?
print firstData
ORDER_ID EMAIL IP AUTHORIZED
0 1234567 [email protected] x.x.x.x 2008-11-15 19:16:07
1 8911234 [email protected] x.x.x.x 2008-11-15 17:59:55
2 4567833 [email protected] x.x.x.x 2008-11-15 17:50:20
HOUR DAY_OF_WEEK SHIPMENT_TYPE ZIPS_MATCH MERCH_SUBCAT
0 19 7 Standard 1 Her Accessory
1 17 7 Standard 1 Her Accessory
2 17 7 Standard 1 Kid toy/clothes
print lastData
ORDER_ID EMAIL IP AUTHORIZED
3 1234567 [email protected] x.x.x.x 2008-11-15 17:43:13
4 8901234 [email protected] x.x.x.x 2008-11-15 13:18:01
5 4567890 [email protected] x.x.x.x 2008-11-15 09:29:10
HOUR DAY_OF_WEEK SHIPMENT_TYPE ZIPS_MATCH MERCH_SUBCAT
3 17 7 Standard 1 Bag
4 13 7 Standard 1 Paperweight/boxes
5 09 7 Standard 0 Candle
concat(firstData, lastData)
TypeError: can't compare datetime.datetime to int