I want to add _x suffix to each column name like so:
_x
featuresA = myPandasDataFrame.columns.values + \'_x\'
How do I do this? A
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.