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
DataFrame.quantile should accept Sequence[float] rather than just List[float].
DataFrame.quantile
Sequence[float]
List[float]
import numpy as np import pandas as pd df = pd.DataFrame([np.arange(100.0)],columns=["a"]) df.quantile(np.array(0.25, 0.75])
Error is
error: No overload variant of "quantile" of "DataFrame" matches argument type "ndarray[Any, dtype[Any]]" note: Possible overload variants: note: def quantile(self, q: float = ..., axis: Literal['columns', 'index', 0, 1] = ..., numeric_only: bool = ..., interpolation: Union[str, Literal['linear', 'lower', 'higher', 'midpoint', 'nearest']] = ...) -> Series[Any] note: def quantile(self, q: List[float], axis: Literal['columns', 'index', 0, 1] = ..., numeric_only: bool = ..., interpolation: Union[str, Literal['linear', 'lower', 'higher', 'midpoint', 'nearest']] = ...) -> DataFrame
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
DataFrame.quantile
should acceptSequence[float]
rather than justList[float]
.Error is
The text was updated successfully, but these errors were encountered: