I want to get both horizontal and vertical grid lines on my plot but only the horizontal grid lines are appearing by default. I am using a pandas.DataFrame from
pandas.DataFrame
plt.gca().xaxis.grid(True) proved to be the solution for me
plt.gca().xaxis.grid(True)