Timeline for Map price values to bins where bins are of a larger price range
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 12, 2019 at 11:42 | comment | added | Graipher |
@NestorasChalkidis: Fixed. It must've been some leftover from your code that made it working. The trick is to return the bins from pandas.qcut and use that.
|
|
Nov 12, 2019 at 11:42 | vote | accept | Nestoras Chalkidis | ||
Nov 12, 2019 at 11:41 | history | edited | Graipher | CC BY-SA 4.0 |
added 16 characters in body
|
Nov 12, 2019 at 11:37 | comment | added | Nestoras Chalkidis | Hi, implementing your suggestion results in TypeError: float() argument must be a string or a number, not 'pandas._libs.interval.Interval'. This happens because the intervals in the pd.cut function should be determined as a list of [0.999, 2.333, 3, 4, 7.333, 8.667, 11.0, 13.333, 18.667, 26.333, 34.333, 54.0]. Any idea how to fix this problem instead of inserting the intervals manually? Thank you Graipher!! | |
Nov 12, 2019 at 11:09 | history | answered | Graipher | CC BY-SA 4.0 |