*** pandas.core.indexes.base.InvalidIndexError: Reindexing only valid with uniquely valued Index objects
Without method="pad" things seem to work. Not sure I should flag this up, though the error message is at least a bit misleading. Then not sure if others find newer Pandas versions on some channel, mine is a 0.24.2, there are docs for 0.25.2 out there. Bug? Feature? I guess it's best termed as 'room for a feature'.
Yaaaay it's Mondaaaay :)
Then not sure if I'm completely right to just get around the problem using np.searchsorted() with roughly the desired effect, but in the given case "behaviour exactly as thought out" is not that indispensable. So I think I just will. Shame on me.
No comments:
Post a Comment