Skip to content
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

ENH: merge_asof() has left_index/right_index and left_by/right_by (#14253) #14426

Closed
wants to merge 1 commit into from
Closed

Conversation

chrisaycock
Copy link
Contributor

@chrisaycock
Copy link
Contributor Author

I'll be the first to admit that there is some kludge in here, identified by comments in the source code. There are some code paths that can only be hit during a pd.merge_asof() when left_index or right_index is set, so no existing functionality will be affected.

I think for pandas 2.0 we'll need to take a more holistic view of how to do merges.

@codecov-io
Copy link

Current coverage is 85.26% (diff: 87.23%)

Merging #14426 into master will decrease coverage by <.01%

@@             master     #14426   diff @@
==========================================
  Files           140        140          
  Lines         50634      50660    +26   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          43173      43193    +20   
- Misses         7461       7467     +6   
  Partials          0          0          

Powered by Codecov. Last update 7d40f18...f6f87b6

@jreback jreback added Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Oct 14, 2016
@chrisaycock
Copy link
Contributor Author

I've had to resubmit this PR as #14531 because I had to recreate my pandas fork. Long story.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add left_by/right_by and left_index/right_index to merge_asof()
3 participants