Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BUG: Concat with inner join and empty DataFrame #15328
Comments
|
ok, this is a bug, we normally filter out completely empty frames, but in this case we need to skip that condition index 3fbd83a..5bf0546 100644
--- a/pandas/tools/merge.py
+++ b/pandas/tools/merge.py
@@ -1689,7 +1689,7 @@ class _Concatenator(object):
if sum(obj.shape) > 0 or isinstance(obj, Series)]
if (len(non_empties) and (keys is None and names is None and
- levels is None and join_axes is None)):
+ levels is None and join_axes is None and not self.intersect)):
objs = non_empties
sample = objs[0]
pull-request to add some tests (there are very little tests for using |
jreback
added Bug Difficulty Novice Effort Low Reshaping
labels
Feb 7, 2017
jreback
added this to the
0.20.0
milestone
Feb 7, 2017
jreback
changed the title from
Concat with inner join and empty DataFrame not works to BUG: Concat with inner join and empty DataFrame
Feb 7, 2017
abaldenko
commented
Feb 9, 2017
|
happy to work on that. does it amount to fixing |
|
tests are in and (shortly) this code is in |
abaldenko
referenced
this issue
Feb 14, 2017
Closed
BUG: Concat with inner join and empty DataFrame #15397
jreback
closed this
in c7300ea
Feb 16, 2017
AnkurDedania
added a commit
to AnkurDedania/pandas
that referenced
this issue
Mar 21, 2017
|
|
abaldenko + AnkurDedania |
23401c1
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jesrael commentedFeb 7, 2017
•
edited by jorisvandenbossche
Function
concatwith parameterjoin='inner'not return emptyDataFrame:But
mergeworks nice:SO question
<\details>