Home>

We become indebted to.
I created a graph of the following image with matplotlib, but the x-axis scale is in units of 0.5
It is displayed. How can I display this in units of 1?

import pandas as pd
import matplotlib.pyplot as plt
import japanize_matplotlib
df = pd.read_excel (r "C: \ Users \ sirar \ Desktop \ Python related \ Data analysis \ pandas \ data \ Real wage index (total cash salary) \ maikin-06.xls", header = None)
df = df [[1,6]]
df = df.rename (columns = {1: "AD", 6: "Total cash payment (annual average)"})
df = df.iloc [11:16]
df
df.plot (x = "AD", y = "total cash payment (annual average)", figsize = (16,8))
plt.grid ()
plt.show
Trends