Version 2.2.2
matplotlib

matplotlib.axis.XAxis.tick_top

XAxis.tick_top()

Move ticks and ticklabels (if present) to the top of the axes.