pycollabproject / realprice

Real estate price viewer
Apache License 2.0
10 stars 3 forks source link

Median code bug #23

Closed calveym closed 8 years ago

calveym commented 8 years ago

Hey @sturdyplum , I just discovered a little bug in some of the median code you wrote. In line 45 of functions.py, you attempt to create a slice with what could be a float [(totalInstances - 1) / 2]

I know you have that if/ else statement to avoid that, but the interpreter is going straight through it and returns it as a syntactically invalid input, so we will have to find a way around it.

sturdyplum commented 8 years ago

maybe I could cast it as an int

sturdyplum commented 8 years ago

ok I think that should fix it check my pull request