mirror of https://github.com/astral-sh/ruff
Repair corrupted PDV007, PDV009 messages (#1273)
This commit is contained in:
parent
73ed6f8654
commit
c93c85300f
|
|
@ -881,9 +881,9 @@ For more, see [pandas-vet](https://pypi.org/project/pandas-vet/0.2.3/) on PyPI.
|
||||||
| PDV002 | UseOfInplaceArgument | `inplace=True` should be avoided; it has inconsistent behavior | |
|
| PDV002 | UseOfInplaceArgument | `inplace=True` should be avoided; it has inconsistent behavior | |
|
||||||
| PDV003 | UseOfDotIsNull | `.isna` is preferred to `.isnull`; functionality is equivalent | |
|
| PDV003 | UseOfDotIsNull | `.isna` is preferred to `.isnull`; functionality is equivalent | |
|
||||||
| PDV004 | UseOfDotNotNull | `.notna` is preferred to `.notnull`; functionality is equivalent | |
|
| PDV004 | UseOfDotNotNull | `.notna` is preferred to `.notnull`; functionality is equivalent | |
|
||||||
| PDV007 | UseOfDotIx | ``ix` i` deprecated; use more explicit `.loc` o` `.iloc` | |
|
| PDV007 | UseOfDotIx | `.ix` is deprecated; use more explicit `.loc` or `.iloc` | |
|
||||||
| PDV008 | UseOfDotAt | Use `.loc` instead of `.at`. If speed is important, use numpy. | |
|
| PDV008 | UseOfDotAt | Use `.loc` instead of `.at`. If speed is important, use numpy. | |
|
||||||
| PDV009 | UseOfDotIat | Use `.iloc` instea` of `.iat`. If speed is important, use numpy. | |
|
| PDV009 | UseOfDotIat | Use `.iloc` instead of `.iat`. If speed is important, use numpy. | |
|
||||||
| PDV010 | UseOfDotPivotOrUnstack | `.pivot_table` is preferred to `.pivot` or `.unstack`; provides same functionality | |
|
| PDV010 | UseOfDotPivotOrUnstack | `.pivot_table` is preferred to `.pivot` or `.unstack`; provides same functionality | |
|
||||||
| PDV011 | UseOfDotValues | Use `.to_numpy()` instead of `.values` | |
|
| PDV011 | UseOfDotValues | Use `.to_numpy()` instead of `.values` | |
|
||||||
| PDV012 | UseOfDotReadTable | `.read_csv` is preferred to `.read_table`; provides same functionality | |
|
| PDV012 | UseOfDotReadTable | `.read_csv` is preferred to `.read_table`; provides same functionality | |
|
||||||
|
|
|
||||||
|
|
@ -2711,13 +2711,13 @@ impl CheckKind {
|
||||||
"`.notna` is preferred to `.notnull`; functionality is equivalent".to_string()
|
"`.notna` is preferred to `.notnull`; functionality is equivalent".to_string()
|
||||||
}
|
}
|
||||||
CheckKind::UseOfDotIx => {
|
CheckKind::UseOfDotIx => {
|
||||||
"``ix` i` deprecated; use more explicit `.loc` o` `.iloc`".to_string()
|
"`.ix` is deprecated; use more explicit `.loc` or `.iloc`".to_string()
|
||||||
}
|
}
|
||||||
CheckKind::UseOfDotAt => {
|
CheckKind::UseOfDotAt => {
|
||||||
"Use `.loc` instead of `.at`. If speed is important, use numpy.".to_string()
|
"Use `.loc` instead of `.at`. If speed is important, use numpy.".to_string()
|
||||||
}
|
}
|
||||||
CheckKind::UseOfDotIat => {
|
CheckKind::UseOfDotIat => {
|
||||||
"Use `.iloc` instea` of `.iat`. If speed is important, use numpy.".to_string()
|
"Use `.iloc` instead of `.iat`. If speed is important, use numpy.".to_string()
|
||||||
}
|
}
|
||||||
CheckKind::UseOfDotPivotOrUnstack => "`.pivot_table` is preferred to `.pivot` or \
|
CheckKind::UseOfDotPivotOrUnstack => "`.pivot_table` is preferred to `.pivot` or \
|
||||||
`.unstack`; provides same functionality"
|
`.unstack`; provides same functionality"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue