Skip to content

Commit 3f5916b

Browse files
author
y-p
committed
BUG: fix integer division operator under py3 in rplot
1 parent 5deb20f commit 3f5916b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tools/rplot.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -750,14 +750,14 @@ def adjust_subplots(fig, axes, trellis, layers):
750750
axis.get_xaxis().set_ticks([])
751751
axis.set_xlabel('')
752752
if trellis.by[0] == '.':
753-
label1 = "%s = %s" % (trellis.by[1], trellis.group_grid[index / trellis.cols][index % trellis.cols])
753+
label1 = "%s = %s" % (trellis.by[1], trellis.group_grid[index // trellis.cols][index % trellis.cols])
754754
label2 = None
755755
elif trellis.by[1] == '.':
756-
label1 = "%s = %s" % (trellis.by[0], trellis.group_grid[index / trellis.cols][index % trellis.cols])
756+
label1 = "%s = %s" % (trellis.by[0], trellis.group_grid[index // trellis.cols][index % trellis.cols])
757757
label2 = None
758758
else:
759-
label1 = "%s = %s" % (trellis.by[0], trellis.group_grid[index / trellis.cols][index % trellis.cols][0])
760-
label2 = "%s = %s" % (trellis.by[1], trellis.group_grid[index / trellis.cols][index % trellis.cols][1])
759+
label1 = "%s = %s" % (trellis.by[0], trellis.group_grid[index // trellis.cols][index % trellis.cols][0])
760+
label2 = "%s = %s" % (trellis.by[1], trellis.group_grid[index // trellis.cols][index % trellis.cols][1])
761761
if label2 is not None:
762762
axis.table(cellText=[[label1], [label2]],
763763
loc='top', cellLoc='center',

0 commit comments

Comments
 (0)