Create Columns in Pandas | Python Pandas Tutorial # 8 | Add, Subtract Columns | Text to Columns

preview_player
Показать описание
Learn how to create new columns in Pandas - by assigning text, splitting columns, and using math to create columns, by adding, subtracting, multiplying, and dividing. Learn how to emulate text to columns in Pandas.

0:00 Introduction
0:22 Loading Dataset
0:40 Assign Text to Column
1:19 Use List as Column in Pandas
1:59 Divide and Multiply a Column in Pandas
2:50 Add Two Columns Together in Pandas
4:00 Add a List of Strings as a Column in Pandas
4:40 Concactenate Two String Columns in Pandas
5:25 Split Text Columns (Text to Columns) in Pandas
7:49 Challenge and Conclusion

Learn Python programming the right way!

----------------------------------------------------------

✅ Follow me on other platforms:
Рекомендации по теме
Комментарии
Автор

Your vdo are interesting and informative. I have walked through but could not found any playlist on "Comprehensive Data Analysis" covering all aspects of reading files from different sources, databases, pdf and do wholistic analysis. Plus this playlist should cover REGEX

Al-Ahdal
Автор

Very good explanation. Thanks. If you can cover how to get the age from a DOB like this 1991-04-24 00:00:00 that would be terrific.

jonathanfriz
Автор

Is it? df['Number'] = range(1, 5)

nonitathomas
Автор

I tried this but didn't work I got error😩

nawelvlogs
Автор

what if i dont want to add new columns. but want to multiply and divide within the existing columns?

Nabsii
Автор

sir, I work on football match prediction so when I remove the Full-time home team goal(FTHG) and Full time away from team goal(FTAG) feature than my algorithm accuracy is 66% but when I add FTHG and FTAG feature than my accuracy is above then 90% so what can I do?

ameerhamza-zroc
Автор

Thank you for the Tutorial. I found this video very useful and interesting. I have question though, what if we don't know the resulting number of columns? Because, without this information, I can't proceed adding column names onto the dataframe.

prashanthar
Автор

Is it? df['Number'] = range(1, 5)

IsItBehindTheFridge