Answers for "pandas list of cols"

0

select list of columns pandas

df[['C', 'D', 'E']]  # or df.loc[:, ['C', 'D', 'E']]
Posted by: Guest on August-09-2021

Python Answers by Framework

Browse Popular Code Answers by Language