0

I have a database which has 7 columns and 35 rows. How do I only display only 'n' number of columns at once? Say I want to just see the columns 1,2, and 5. Is there any way to do that using the column names and/or column number? I was using this print(df['Offenders = Neighbours','Offenders Known']), where 'Offenders=Neighbours' and 'Offenders Known' were two of the column names. It worked when there was just one column name but not for more than one. Sounds like a very basic question but I'm new to Pandas so any help would be appreciated

Abhishek
  • 553
  • 2
  • 9
  • 26

0 Answers0