Prior to version 0.21.0, rename_axis could also be used to change
the axis labels by passing a mapping or scalar. This behavior is
deprecated and will be removed in a future version. Use rename
instead.