Back to Intellij Community

PyPandasSeriesToListInspection

python/python-psi-impl/resources/inspectionDescriptions/PyPandasSeriesToListInspection.html

2025.3-rc-2310 B
Original Source

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()