If your version of pandas is a recent version then you can just use the vectorised string method upper
:
df['1/2 ID'] = df['1/2 ID'].str.upper()
This method does not work inplace, so the result must be assigned back.
More Related Contents:
- Selecting with complex criteria from pandas.DataFrame
- Combine two pandas Data Frames (join on a common column)
- Restart cumsum and get index if cumsum more than value
- Remove non-numeric rows in one column with pandas
- How to deal with multi-level column names downloaded with yfinance
- Replace all occurrences of a string in a pandas dataframe (Python)
- Running get_dummies on several DataFrame columns?
- ValueError: numpy.dtype has the wrong size, try recompiling
- Get business days between start and end date using pandas
- How to change the datetime tick label frequency for matplotlib plots
- Pandas DataFrame aggregate function using multiple columns
- Pandas get the most frequent values of a column
- Subtract two columns in dataframe
- Python Pandas: Is Order Preserved When Using groupby() and agg()?
- Pass percentiles to pandas agg function
- How to calculate time difference by group using pandas?
- Capitalize first letter of each word in a dataframe column
- Compute the running (cumulative) maximum for a series in pandas
- Get total of Pandas column
- Sorting columns and selecting top n rows in each group pandas dataframe
- Get first and second highest values in pandas columns
- ImportError: No module named ‘pandas.indexes’
- python dask DataFrame, support for (trivially parallelizable) row apply?
- Python How to use ExcelWriter to write into an existing worksheet
- replace value by using regex to np.nan
- reading multiple files contained in a zip file with pandas
- How to filter a DataFrame column of lists for those that contain a certain item
- Excel VLOOKUP equivalent in pandas
- Seaborn multiple barplots
- pandas scatter plotting datetime