Method Series.to_list() is recommended
Reports redundant list
in list(Series.values)
statement for pandas and polars libraries. Such Series
values extraction can be replaced with the to_list()
function call.
Example:
list(df['column'].values)
When the quick-fix is applied, the code changes to:
df['column'].to_list()
Inspection Details | |
---|---|
Available in: | DataSpell 2023.3, PyCharm 2023.3 |
Plugin: | Python Community Edition, 233.SNAPSHOT |
Last modified: 13 July 2023