There is a CSV file with a lot of columns. I want to extract the columns with the text "People Sensible Heating Rate" and export it to a csv file named "People Sensible Heating Rate" using PANDAS. [closed]

There is a CSV file with a lot of columns. I want to extract the columns with the text "People Sensible Heating Rate" and export it to a csv file named "People Sensible Heating Rate" using PANDAS.

Siv's avatar
653
Siv
asked 2018-07-17 06:07:07 -0500
edit flag offensive 0 remove flag reopen merge delete

Closed for the following reason "question is off-topic or not relevant" by Julien Marrec 2018-07-17 08:03:52 -0500

Comments

1

I'm closing this question.

Be careful not to fall into a "please do my homework" type of situation, nor to confuse unmet hours with Stack Overflow. Here this is purely a Python/Pandas situation and has nothing to do with energy modeling specifically. There are many similar questions on Stack overflow, such as this one

To answer your question quickly though: you can use df.filter(like='People Sensible Heating Rate').

Julien Marrec's avatar Julien Marrec (2018-07-17 08:04:34 -0500) edit

haha okay. Thank you.

Siv's avatar Siv (2018-07-17 08:55:43 -0500) edit
add a comment see more comments