pandas.DataFrame.set_axis

DataFrame.set_axis(axis, labels)

public verson of axis assignment