Skip to content

Fixes a missing ".reshape" call #13525

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

Closed

Conversation

andyljones
Copy link

@andyljones andyljones commented Jun 28, 2016

closes #13287

Currently, some 2D arrays can go into _possibly_infer_to_datetimelike and come out 1D. The issue is that the input is ravelled at one point, but only unravelled back to it's original form if a certain path it taken through the function. This pull request adds the same .reshape(shape) call to the other path through the function.

@jreback
Copy link
Contributor

jreback commented Jun 28, 2016

tests!

@codecov-io
Copy link

Current coverage is 84.33%

Merging #13525 into master will not change coverage

@@             master     #13525   diff @@
==========================================
  Files           138        138          
  Lines         51107      51107          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits          43103      43103          
  Misses         8004       8004          
  Partials          0          0          

Powered by Codecov. Last updated by 1a9abc4...59b9e83

@jreback
Copy link
Contributor

jreback commented Jun 29, 2016

this is actually a non-trivial issue, I suspect this fix will work partially. But need a fair amount of tests.

@jreback jreback added Datetime Datetime data dtype Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Jun 29, 2016
@jreback
Copy link
Contributor

jreback commented Jul 6, 2016

pls reopen if you want to complete

@jreback jreback closed this Jul 6, 2016
@jorisvandenbossche jorisvandenbossche added this to the No action milestone Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Pandas cannot create DataFrame from Numpy Array of TimeStamps
4 participants