Derived from the pandas-vet linter.
What it does#
Checks for uses of
.values on Pandas Series and Index objects.
Why is this bad?#
.values attribute is ambiguous as it's return type is unclear. As
such, it is no longer recommended by the Pandas documentation.
.to_numpy() to return a NumPy array, or
.array to return a