-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Concat with inner join and empty DataFrame #15328
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
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 |
happy to work on that. does it amount to fixing |
tests are in and (shortly) this code is in |
closes pandas-dev#15328 Author: abaldenko <[email protected]> Closes pandas-dev#15397 from abaldenko/concat_empty_dataframe and squashes the following commits: 47c8735 [abaldenko] BUG: Concat with inner join and empty DataFrame fc473b7 [abaldenko] BUG: Concat with inner join and empty DataFrame b86dcb6 [abaldenko] BUG: Concat with inner join and empty DataFrame
Function
concat
with parameterjoin='inner'
not return emptyDataFrame
:But
merge
works nice:SO question
<\details>
The text was updated successfully, but these errors were encountered: