A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/9477 below:

.apply converting string to date · Issue #9477 · pandas-dev/pandas · GitHub

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4