Different Ways to Get Python Pandas Column Names | GeeksforGeeks

preview_player
Показать описание
While analyzing the real datasets that are often very huge in size, we might need to get the column names in order to perform certain operations. So, in this video, we're going to discuss how can we get the column names in Pandas Dataframe. There are various methods for doing it such as tolist(), sorted(), etc. Let's understand each of them with the help of live examples.

00:00 Let's Start
01:43 Simply Iterating Over Columns to Get the Columns Name
03:16 Using tolist() for Getting a List of Columns
04:00 Using sorted() for Getting a List of Columns Sorted in Alphabetical Order
04:34 Getting Columns Names from .csv file
05:55 Closing Notes

Check Out the Related Articles:

This video is contributed by Akshit Madan.
Please Like, Comment, and Share the Video with your friends.

#python​​ #pandas​​ #dataframe​​ #datascience​​ #pythonpandas​​ #eda​​

Install our Android App:

If you wish, translate into the local language and help us reach millions of other geeks:

Follow us on our Social Media Handles -

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

How can I get the columns that begin did b of B?

CaribouDataScience
Автор

I cant understand a word you said. Can we get a White

tankisaconquistadorthewayh