Identifying a Substring Within a Python String

preview_player
Показать описание
If you’re new to programming or come from a programming language other than Python, you may be looking for the best way to check whether a string contains another string in Python. You'll learn about a couple of string methods for this task.

This is a portion of the complete course, which you can find here:

The rest of the course covers how to:
- Get to Know Regex for Finding Substrings
- Explore the Match object
- Find a Substring in a pandas DataFrame Column
- Use Regular Expressions With pandas
Рекомендации по теме
Комментарии
Автор

For case-insensitive string comparisons, it may be a good idea to use `str.casefold()` instead of `str.lower()` if you deal with non-ASCII / Unicode characters.

NicolasChanCSY