bp = plt.boxplot(data, whis=[5, 95], showfliers=True)
fliers = bp['fliers']
for fly in fliers:
    fdata = fly.get_data()
fly.set_data([fdata[0][0], fdata[0][-1]], [fdata[1][0], fdata[1][-1]])
Matplotlib boxplot show only max and min fliers