-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: Joining a DataFrame with a PeriodIndex fails #16541
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
this fixes if you can do a PR
obviously need some more tests on the index join methods as well :> Here is the tests for datetimes in
|
if you can do this in next day or 2 can get into 0.20.2 (end of week) |
@jreback Is this issue still open? |
PR waiting here: #16586 |
So I used my version 0.20.1 to add the fix suggested above by @jreback , and that fixed the problem for me, but then a different one cropped up. Not sure if I should just put this in a different issue. In my use case, I took dates and made them a monthly period, and there are duplicates. Here is a way to make it happen:
This gives this sequence of errors:
Let me know if I should open up a new issue, given that this bug happens when applying the above fix. |
Do you get the error run on that PR? If so, I would open a new issue? |
@MaximilianR I did a hand edit of pandas 0.20.1 to implement what is in the PR, and got the error. To test it against all PR's, I think I'd need that PR to be merged into master and then I can pull master and test. |
Great! FYI you can pull someone's PR for convenience, rather than hand-editing |
Code Sample
It seems the sort kwarg is invalid, but the internals are passing it in regardless
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.13-moby
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.20.1
pytest: 3.0.7
pip: 9.0.1
setuptools: 35.0.2
Cython: 0.25.2
numpy: 1.12.1
scipy: 0.19.0
xarray: 0.9.2
IPython: 5.3.0
sphinx: None
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: 1.2.0
tables: None
numexpr: 2.6.2
feather: None
matplotlib: 2.0.1
openpyxl: None
xlrd: None
xlwt: 1.2.0
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.999999999
sqlalchemy: 1.1.9
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
pandas_gbq: 0.1.6
pandas_datareader: None
The text was updated successfully, but these errors were encountered: