4 Ways to Use Pandas to Select Columns in a Dataframe
datagy.io › pandas-select-columnsMay 19, 2020 · Select a Single Column in Pandas Now, if you want to select just a single column, there’s a much easier way than using either loc or iloc. This can be done by selecting the column as a series in Pandas. You can pass the column name as a string to the indexing operator. For example, to select only the Name column, you can write: