small changes to fix warnings that come up in pandas .15

@jiffyclub You ok with these?  I will work on the failing test next ;)
If you mean for this to be truncated I usually throw a `math.floor` in there to make it explicity: `int(math.floor(...))`. The effect is the same, but I like to prove it's intentional.