Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, the dataframe is very tricky to get right function signature wise. I used to write a lot of pandas heavy software and converged on writing most functions to take a dataframe or series and when possible just return a series, then put that series back into the df at the function call site. Handing dfs off to functions that mutate them gets gnarly very quickly.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: