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

fix future warning from pandas #72

Closed
mbakker7 opened this issue Jun 12, 2018 · 1 comment
Closed

fix future warning from pandas #72

mbakker7 opened this issue Jun 12, 2018 · 1 comment
Labels
bug Indicates an unintended behavior or coding error
Milestone

Comments

@mbakker7
Copy link
Collaborator

/Users/mark/git/pastas/pastas/stressmodels.py:298: FutureWarning:
Passing list-likes to .loc or [] with any missing label will raise
KeyError in the future, you can use .reindex() as an alternative.

See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike
h = h.loc[tindex]

@mbakker7 mbakker7 added the bug Indicates an unintended behavior or coding error label Jun 12, 2018
@raoulcollenteur raoulcollenteur added this to the v0.9.6 milestone Jun 21, 2018
@raoulcollenteur
Copy link
Member

This was fixed by changing the way we deal with indices now, creating them from tmin, tmax and freq or form the stress index. Also 'h=h.loc[tindex] is no longer used. Should this come up again it must now be a bug in the code, not a compatibility issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unintended behavior or coding error
Projects
None yet
Development

No branches or pull requests

2 participants