How to use 'dataframe column to list' in Python

Every line of 'dataframe column to list' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
147def __to_list(self, column_or_columns):
148 column_names = column_or_columns
149 if not isinstance(column_names, (list, tuple)):
150 column_names = [column_names]
151 return column_names
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code


Related snippets