diff --git a/pandastable/core.py b/pandastable/core.py index 7cfbf1b6..123521fc 100644 --- a/pandastable/core.py +++ b/pandastable/core.py @@ -809,7 +809,7 @@ def adjustColumnWidths(self, limit=30): else: w = self.cellwidth l = self.model.getlongestEntry(col) - txt = ''.join(['X' for i in range(l+1)]) + txt = ''.join(['X' for i in range(int(l)+1)]) tw,tl = util.getTextLength(txt, self.maxcellwidth, font=self.thefont) #print (col,txt,l,tw)