Skip to content

TypeError: update(): incompatible function arguments. when filtering and groupby #1933

Answered by JovanVeljanoski
dataovoxo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Thank you for providing a fully reproducible example! Very much appreciated.
If I am not mistaken your example uncovered two bugs, but I think I have work-arounds for now at least.

Ok, so problem 1.1: the apply function returns an expression of dtype float instead of a string (?!). So this was causing biggest problem. I don't know why that is. Something to investigate on our end i suppose.

Problem 1.2: the second apply is also not returning a string. Maybe there is a problem with apply functions that need to return a string dtype.

Problem 2: df.x.dt.strftime(...) returns dtype null (??) instead of expected dtype string. Luckily there is an easy "fix" for this.

I will open issues and m…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JovanVeljanoski
Comment options

@dataovoxo
Comment options

Answer selected by dataovoxo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants