df['col'] = 'str' + df['col'].astype(str)
Example:
>>> df = pd.DataFrame({'col':['a',0]})
>>> df
col
0 a
1 0
>>> df['col'] = 'str' + df['col'].astype(str)
>>> df
col
0 stra
1 str0
More Related Contents:
- Filter pandas DataFrame by substring criteria
- How to test if a string contains one of the substrings in a list, in pandas?
- Pandas filtering for multiple substrings in series
- Remove unwanted parts from strings in a column
- String concatenation of two pandas columns
- Find column whose name contains a specific string
- pandas dataframe str.contains() AND operation
- Pandas DataFrame stored list as string: How to convert back to list
- Pandas column access w/column names containing spaces
- How to remove square bracket from pandas dataframe
- NLTK-based text processing with pandas
- Left justify string values in a pandas DataFrame
- Count number of words per row
- Converting a column within pandas dataframe from int to string
- Capitalize first letter of each word in a dataframe column
- How to use str.contains() with multiple expressions in pandas dataframes
- Copy text between parentheses in pandas DataFrame column into another column
- Binning a column with Python Pandas
- Compare two DataFrames and output their differences side-by-side
- How to access pandas groupby dataframe by key
- How to drop duplicates based on two or more subsets criteria in Pandas data-frame
- How to show all columns’ names on a large pandas dataframe?
- In Pandas, does .iloc method give a copy or view?
- Python – Delete duplicates in a dataframe based on two columns combinations?
- Scraping dynamic data selenium – Unable to locate element
- Convert list into a pandas dataframe
- Python Pandas: Convert “.value_counts” output to dataframe
- Remove NaN/NULL columns in a Pandas dataframe?
- Group DataFrame in 5-minute intervals
- Python: Adding hours to pandas timestamp