The following is the nicest way to add suffix in my opinion.
df = df.add_suffix('_some_suffix')
As it is a function that is called on DataFrame and returns DataFrame – you can use it in chain of the calls.
More Related Contents:
- Why does the following code cant get value of n_fold = 1?
- How to change the order of DataFrame columns?
- Add missing dates to pandas dataframe
- Python Pandas – Find difference between two data frames
- Pandas: sum DataFrame rows for given columns
- Rename Pandas DataFrame Index
- Pandas DataFrame: replace all values in a column, based on condition
- What is the fastest way to upload a big csv file in notebook to work with python pandas?
- How to check if any value is NaN in a Pandas DataFrame
- Convert row to column header for Pandas DataFrame,
- Removing prefix from column names in Pandas
- Select multiple ranges of columns in Pandas DataFrame
- pandas – filter dataframe by another dataframe by row elements
- Python Pandas replicate rows in dataframe
- Left justify string values in a pandas DataFrame
- Python Pandas update a dataframe value from another dataframe
- How can I replicate rows in Pandas?
- Action with pandas SettingWithCopyWarning
- python dataframe pandas drop column using int
- How to create a DataFrame of random integers with Pandas?
- How to plot two columns of a pandas data frame using points
- How to read a list of parquet files from S3 as a pandas dataframe using pyarrow?
- Putting many python pandas dataframes to one excel worksheet
- Find difference between two data frames
- Create new column based on values from other columns / apply a function of multiple columns, row-wise in Pandas
- append dictionary to data frame
- What values are valid in Pandas ‘Freq’ tags?
- How to efficiently assign unique ID to individuals with multiple entries based on name in very large df
- start index at 1 for Pandas DataFrame
- Multi Index Sorting in Pandas