We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
index.get_loc() no longer accepts multiple arguments (index only, not index and method). We modified our lib to use the get_indexer method. http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.get_loc.html
https://pandas.pydata.org/pandas-docs/version/1.5/reference/api/pandas.Index.get_loc.html?highlight=get_loc#pandas.Index.get_loc states, "Deprecated since version 1.4: Use index.get_indexer([item], method=…) instead."
We changed line 196 in erddap_griddap_dimensions.py function closestIdx() from
idx = self.values.index.get_loc(value, method=method) to idx = self.values.index.get_indexer([value], method=method)[0]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
index.get_loc() no longer accepts multiple arguments (index only, not index and method). We modified our lib to use the get_indexer method. http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.get_loc.html
https://pandas.pydata.org/pandas-docs/version/1.5/reference/api/pandas.Index.get_loc.html?highlight=get_loc#pandas.Index.get_loc states,
"Deprecated since version 1.4: Use index.get_indexer([item], method=…) instead."
We changed line 196 in erddap_griddap_dimensions.py function closestIdx() from
idx = self.values.index.get_loc(value, method=method)
to
idx = self.values.index.get_indexer([value], method=method)[0]
The text was updated successfully, but these errors were encountered: