How to get list of column names | pandas

Опубликовано: 15 Март 2021
на канале: Chart Explorers
2,109
40

In this video we discuss the best way of getting a list of column names from a pandas dataframe. We go over how to get the column names as a list, tuples, and set. WE also examine the most performant method of returning a list of column names from your dataframe.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Python & Data Merch - I think this is pretty cool stuff let me know what you think!
https://bit.ly/PythonAndDataMerch

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

My Number 1 course recommendation for self learners (affiliate link): bit.ly/GoogleAnalyticsProfessionalCertificate

Udemy Recommendations that I have Personally Taken (affiliate links):
►►Learn Statistics http://bit.ly/Statistics4DSUdemyCE
►►Learn Python http://bit.ly/LearnPythonCE
►►Learn SQL http://bit.ly/LearnSQLCE
►►Learn Data Analysis (this goes into advanced concepts - learn up to and including Logistic regression - you don't need this before you start applying for jobs but it can help) http://bit.ly/PythonMLDS_CE
►►Learn Business Intelligence http://bit.ly/LearnBI_CE
►►Learn Time Series Analysis (this is an important skill in SOME jobs, but you don't need this before you start applying for jobs) http://bit.ly/TimeSeries_CE

For a more technical / hands on approach consider Dataquest (this is where I learned much of what I know). You will learn will learn SQL, Python, R, and more)! This is a recommendation link I do not get paid, but you will get $15 dollars off.
app.dataquest.io/referral-signup/qybqz3r8/

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Recommended Books

United States
►► Python for Data Analysis by Wes McKinney http://bit.ly/PythonAnalysisUS
►► SQL Cookbook by Anthony Molinaro & Robert de Graff http://bit.ly/SQLCookbookUS

UK
►► Python for Data Analysis by Wes McKinney http://bit.ly/PythonAnalysisUK
►► SQL Cookbook by Anthony Molinaro & Robert de Graff http://bit.ly/SQLCookbookUK

Canada
►►Python for Data Analysis by Wes McKinney http://bit.ly/PythonAnalysis
►►SQL Cookbook by Anthony Molinaro & Robert de Graff http://bit.ly/SQLCookbook

These are affiliate links (no extra charge to you, but it helps me out)

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Consider subscribing for weekly tips, tricks, and tutorials.
   / @chartexplorers  

Join my Discord Server   / discord  

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Data Link
https://bit.ly/31WIgwd

Data source fivethirtyeight
https://fivethirtyeight.com/tag/colle...

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

0:00 Intro
0:20 Data
0:25 Index
0:50 List of Cols
1:00 Set of Cols
1:06 Tuple of Cols
1:28 Less than 3.5
1:41 Performance