We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http://pandas-docs.github.io/pandas-docs-travis/timeseries.html#time-deltas-conversions
In [253]: to_timedelta(np.arange(5),unit='d') --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-253-bab05b276f33> in <module>() ----> 1 to_timedelta(np.arange(5),unit='d') /home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pandas/tseries/timedeltas.pyc in to_timedelta(arg, box, unit) 61 return Series(values, index=arg.index, name=arg.name, dtype='m8[ns]') 62 elif is_list_like(arg): ---> 63 return _convert_listlike(arg, box=box, unit=unit) 64 65 # ...so it must be a scalar value. Return scalar. /home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pandas/tseries/timedeltas.pyc in _convert_listlike(arg, box, unit) 42 elif is_integer_dtype(arg): 43 # these are shortcutable ---> 44 value = arg.astype('timedelta64[{0}]'.format(unit)).astype('timedelta64[ns]') 45 else: 46 try: TypeError: Invalid datetime unit in metadata string "[d]"
The text was updated successfully, but these errors were encountered:
The same error in whatsnew of 0.13: http://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#id11
Did there change something recently?
Sorry, something went wrong.
yeh...i think i made a change, guess I broke this; numpy doesn't like 'd' in timedelta64, only 'D' (which is odd if you ask me, but ok).
jreback
Successfully merging a pull request may close this issue.
http://pandas-docs.github.io/pandas-docs-travis/timeseries.html#time-deltas-conversions
The text was updated successfully, but these errors were encountered: