You can use another function "xaxis.set_tick_params()" with "bottom=False" parameter. It will turn off the ticks on the X-axis.
ax.minorticks_on()ax.xaxis.set_tick_params(which='minor', bottom=False)