You can get the values as a list by doing:
list(my_dataframe.columns.values)
Also you can simply use (as shown in Ed Chum’s answer):
list(my_dataframe)
More Related Contents:
- How to provide a reproducible copy of your DataFrame with to_clipboard()
- Combine two columns of text in pandas dataframe
- Convert DataFrame column type from string to datetime
- How to apply a function to two columns of Pandas dataframe
- How to convert an XML file to nice pandas dataframe?
- Dynamically evaluate an expression from a formula in Pandas
- Replacing few values in a pandas dataframe column with another value
- Find column whose name contains a specific string
- Numpy “where” with multiple conditions
- Pandas DataFrame to List of Dictionaries
- Pandas dataframe groupby plot
- How to calculate mean values grouped on another column in Pandas
- Pandas index column title or name
- Making heatmap from pandas DataFrame
- Rename specific column(s) in pandas
- How to access pandas groupby dataframe by key
- Count occurrences of each of certain words in pandas dataframe
- python pandas dataframe slicing by date conditions
- Python/Pandas convert string to time only
- Convert list into a pandas dataframe
- Python: Removing Rows on Count condition
- Anti-Join Pandas
- Remove NaN/NULL columns in a Pandas dataframe?
- Group DataFrame in 5-minute intervals
- Pandas groupby and aggregation output should include all the original columns (including the ones not aggregated on)
- Selecting a range of columns in a dataframe
- Replace NaN with empty list in a pandas dataframe
- Get weekday/day-of-week for Datetime column of DataFrame
- Get max value from row of a dataframe in python [duplicate]
- When is it appropriate to use df.value_counts() vs df.groupby(‘…’).count()?