Closed
Description
The .apply on DataFrame is converting my string to a date. I have posted this on StackOverflow:
http://stackoverflow.com/questions/28487105/pandas-on-apply-passing-wrong-value
I'm not sure if I'm doing something wrong or it is a bug, but it seems quite strange behavior.
Example here
In [8]: df = pd.DataFrame({'wing1':wing1, 'wing2':wing2, 'mat':mat}, index=belly)
In [9]: df
Out[9]:
mat wing1 wing2
216 2016-01-22 2T15 416
3T19 2019-09-07 4H19 4T20
In [17]: df.loc['3T19']
Out[17]:
mat 2019-09-07 00:00:00
wing1 2015-02-16 04:19:00
wing2 2015-04-20 00:00:00
Name: 3T19, dtype: datetime64[ns]
In [18]: df.loc['216']
Out[18]:
mat 2016-01-22 00:00:00
wing1 2T15
wing2 416
Name: 216, dtype: object