How to Join Two Text Columns into a Single Column in Pandas?

Often one may want to join two text columns into a new column in a data frame. For example, one may want to combine two columns containing last name and first name into a single column with full name. We can use Pandas’ string manipulation functions to combine two text columns easily. There are a… Continue reading How to Join Two Text Columns into a Single Column in Pandas?

9 Ways to Manipulate Strings in Python

Python is great for string manipulation. Python’s string manipulation ability was definitely one of the reasons for its popularity initially. Python’s built-in methods lets you do most common string manipulations. Here are the String object methods in Python and how to use them. 1. How to Check a String Ends With a Suffix? Python String… Continue reading 9 Ways to Manipulate Strings in Python