Тёмный

Finding text patterns in Pandas with regular expressions 

Python and Pandas with Reuven Lerner
Подписаться 20 тыс.
Просмотров 5 тыс.
50% 1

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@jaysonnolastname1260
@jaysonnolastname1260 Год назад
Hi Reuven, why is it that when I try to create that Series, I get, "AttributeError: 'Series' object has no attribute 'split'"?
@ReuvenLerner
@ReuvenLerner Год назад
You can't run split directly on the series. Rather, you have to run it on each string on the series. So don't say s.split()! Rather, say s.str.split(), which applies str.split to each element, and then returns a new series based on it.
@tyl9680
@tyl9680 4 месяца назад
Why s.replace('is', 'IS', regex=True) and s.replace('is', 'IS') give different results for s = pd.Series('this is a buch of words'.split())
Далее
Как он понял?
00:13
Просмотров 147 тыс.
Method chaining in Pandas
18:17
Просмотров 2,1 тыс.
5 Useful F-String Tricks In Python
10:02
Просмотров 308 тыс.
Learn Regular Expressions In 20 Minutes
20:52
Просмотров 1,3 млн
100+ Computer Science Concepts Explained
13:08
Просмотров 2,5 млн
Regular Expressions in Python
18:58
Просмотров 79 тыс.
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 807 тыс.