You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pandas\core\frame.pyc in _apply_standard(self,
func, axis, ignore_failures)
4056 # no k defined yet
4057 pass
-> 4058 raise e
4059
4060 if len(results) > 0 and _is_sequence(results[0]):
TypeError: ("ufunc 'add' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'", u'occurred at index x1')
from datetime import datetime
from pandas import DataFrame
df = DataFrame({'x1': [datetime(1996,1,1)]})
df2 = df.applymap(lambda x: x)
Issue:
type(df['x1'][0]) == datetime.datetime
type(df2['x1'][0]) == pandas.lib.Timestamp
This repros in the 11/27/2012 cut of 0.10.0 - but not in 0.9.0 release.
The text was updated successfully, but these errors were encountered: