I was trying the following code:
fig, ax1 = plt.subplots()
#data is a geopandas DataFrame
data.plot(ax=ax1, kind='bar', color= barcolor, width= 0.8)
ax1.set_yticklabels(ax1.get_yticklabels(), weight='bold')
ax1.set_xticklabels(ax1.get_xticklabels(), rotation=0, weight='bold', size=12)
Only x-axis gets affected by this code and y-axis labels are getting removed.