-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: fix DataFrame(data=[None, 1], dtype='timedelta64[ns]') raising ValueError #60081
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
Changes from 4 commits
06f317e
b5bec39
4fe0ffa
98dd50f
9c34762
65a48e1
0627217
d93d5b2
84c01da
bc106df
11a9a7e
bf680ce
fc2405f
5c36932
e19bf19
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1111,7 +1111,7 @@ def sequence_to_td64ns( | |
else: | ||
mask = np.isnan(data) | ||
|
||
data = cast_from_unit_vectorized(data, unit or "ns") | ||
data = cast_from_unit_vectorized(data.ravel(), unit or "ns").reshape(data.shape) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems to me we shouldn't be doing this in array code, that should assume the data is already 1d. Can you move this to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see. Moved. |
||
data[mask] = iNaT | ||
data = data.view("m8[ns]") | ||
copy = False | ||
|
Uh oh!
There was an error while loading. Please reload this page.