Uncategorized Print Only Column Names Pandas - Using set_axis method is a bit tricky for renaming columns in pandas. In the following example, we take a dataframe with some initial column names and change these column names to new values.