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

Feature/528 allow newest pandas version #594

Merged
merged 11 commits into from
Nov 23, 2019

Conversation

nils-braun
Copy link
Collaborator

This builds on top of #562 and fixes the two unit tests.

It also does not require the newest version of pandas, but only to not be 0.24.*

PS: we should really fix the .travis.yaml, I have the strong feeling we are not doing this very optimally... I especially do not like the specification of the versions. Will tackle this later.

@dbarbier Are you fine with this?

@nils-braun
Copy link
Collaborator Author

This should fix #528

@coveralls
Copy link

coveralls commented Nov 18, 2019

Coverage Status

Coverage remained the same at ?% when pulling 12999b4 on feature/528-allow-newest-pandas-version into 11e5c07 on master.

@dbarbier
Copy link
Contributor

@dbarbier Are you fine with this?

@nils-braun Sure, thanks a lot!

@dbarbier
Copy link
Contributor

@nils-braun Failure is caused by a change in pandas 0.25.3, pd.melt now calls np.ravel, and quite surprisingly np.ravel(['index', 1]) returns array(['index', '1'], dtype='<U5'), and pd.melt complains that there is no column named str(1). One might argue that this is a pandas bug, but on the other hand I am not sure whether mixing character and numeric column names is well supported, thus I suggest to use a numeric name for index if columns have numeric names.

@nils-braun
Copy link
Collaborator Author

nils-braun commented Nov 19, 2019

Yes, thanks for pointing out. I did see it yesterday evening but could not fix it before going to bed.

I will create an issue on the pandas repo nevertheless (pandas-dev/pandas#29718), but I guess you are right: we should fix it also from our side.

@nils-braun
Copy link
Collaborator Author

(hopefully this will all go away once pandas-dev/pandas#28859 is finished)

@Froskekongen
Copy link
Contributor

Would it be possible to do a new release once this PR is merged?

@dbarbier
Copy link
Contributor

Hi @nils-braun do you have any idea why travis builds are failing?

@dbarbier
Copy link
Contributor

Got it, pandas 0.25 requires python >= 3.5.3 https://pandas.pydata.org/pandas-docs/stable/install.html#python-version-support
I can confirm that everything works fine with python 3.5.3.

@nils-braun nils-braun merged commit 0ef9123 into master Nov 23, 2019
@nils-braun nils-braun deleted the feature/528-allow-newest-pandas-version branch November 23, 2019 16:54
@Rictus
Copy link

Rictus commented Nov 26, 2019

Thank you for this work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants