xxxxxxxxxx
#We create a secondary y-axis for the definded column
df.plot(secondary_y='name_of_column')
plt.show()
xxxxxxxxxx
# Import Library
import numpy as np
import matplotlib.pyplot as plt
# Define Data
x = np.arange(200)
y = np.cos(x)
# Plot Graph
fig, ax1 = plt.subplots()
ax1.plot(x, y)
# Define Labels
ax1.set_xlabel('X-axis')
ax1.set_ylabel('Y1-axis')
# Twin Axes
ax2 = ax1.twinx()
ax2.set_ylabel('Y2-axis')
# Set limit
plt.ylim(-1, 1)
# Display
plt.show()