pandas rename second column code example Example: pandas rename single column data.rename(columns={'oldName':'newName'}, inplace=True)