Skip to content

BUG/REF: TimedeltaIndex.__new__ #23539

New issue

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

Merged
merged 19 commits into from
Nov 11, 2018
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
afc2d30
simplify+fix+test TimedeltaIndex constructor
jbrockmendel Nov 7, 2018
e4b06ca
tests for datetime64 data being invalid, floats being valid iff non-l…
jbrockmendel Nov 7, 2018
231a5c1
Merge branch 'master' of https://github.com/pandas-dev/pandas into pr…
jbrockmendel Nov 7, 2018
1ff432b
comments and whitespace
jbrockmendel Nov 7, 2018
645e99c
GH references
jbrockmendel Nov 7, 2018
9c89746
deprecate instead of raising for datetime64 dtypes
jbrockmendel Nov 7, 2018
ef3f277
implement sequence_to_td64ns, deprecate datetime64 data, add and test…
jbrockmendel Nov 8, 2018
b20eda9
Merge branch 'master' of https://github.com/pandas-dev/pandas into pr…
jbrockmendel Nov 8, 2018
3f76c02
catch warnings
jbrockmendel Nov 8, 2018
9d79205
Merge branch 'master' of https://github.com/pandas-dev/pandas into pr…
jbrockmendel Nov 8, 2018
d73bee6
revert float changes, and tests
jbrockmendel Nov 8, 2018
f39b806
Merge branch 'master' of https://github.com/pandas-dev/pandas into pr…
jbrockmendel Nov 10, 2018
ccc7fcf
change ValueError-->TypeError
jbrockmendel Nov 10, 2018
6fda27e
double quotes
jbrockmendel Nov 10, 2018
c63796a
test that no copy is made with int64 data
jbrockmendel Nov 10, 2018
e9b5da6
update tests to TypeError
jbrockmendel Nov 10, 2018
b43e936
Merge branch 'master' of https://github.com/pandas-dev/pandas into pr…
jbrockmendel Nov 11, 2018
da6b286
dtype=object instead of 'O'
jbrockmendel Nov 11, 2018
898444f
use pytest.raises instead of tm.assert_raises_regex
jbrockmendel Nov 11, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
dtype=object instead of 'O'
  • Loading branch information
jbrockmendel committed Nov 11, 2018
commit da6b286a3b3ea7d96e562ef4d335000ad1195c11
2 changes: 1 addition & 1 deletion pandas/core/tools/timedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _convert_listlike(arg, unit='ns', box=True, errors='raise', name=None):
# returning arg (errors == "ignore"), and where the input is a
# generator, we return a useful list-like instead of a
# used-up generator
arg = np.array(list(arg), dtype='O')
arg = np.array(list(arg), dtype=object)

try:
value = sequence_to_td64ns(arg, unit=unit,
Expand Down