Source From Here
Question
I want to get a list of the column headers from a pandas DataFrame. For example, if I'm given a DataFrame like this:
How to get the column list as ("age", "name")?
How-To
Check below sample code:
Question
I want to get a list of the column headers from a pandas DataFrame. For example, if I'm given a DataFrame like this:
How to get the column list as ("age", "name")?
How-To
Check below sample code:
沒有留言:
張貼留言