Q: Adjusting Pandas plot.hist() for better representation For a data frame like this
      Metric Value Metric Value Metric Value Metric Value
0             3            3            7            7
1             1            1            1            1
2             0            0            0            0

I wrote this code to create a simple histogram for the first row (2 three and 2 seven values).
    row = df.iloc[0]
    row.astype(int).plot.hist()

The result is shown below. The problem is with the position of bars. The first bar starts from 3 and the second bar ends at 7. I expected to see 3 and 7 on the axis in the middle of the bars. Also, the values on the x axis are float. I expected to see 3..7 values in integer form.

How can I fix the issues?
