Open edasmalchi opened 1 year ago
Thanks for reporting! Do you know if that is with the latest version of siuba (siuba.__version__
should be 0.4.0). I think it may be resolved in the latest release (this pandas deprecation is pretty recent I think)
Looks like we've got 1.0.0a2
on the Cal-ITP JupyterHub -- tried bumping it with a quick pip install siuba==0.4.0
but that seemed to break the tbl
function from calitp-py.
Not sure where our version comes from but I can make a ticket to look into it on our side.
Ah shoot--siuba 0.4.0 introduces the tbl()
function from dplyr. I should chosen a better name for tbl
in calitp 😬.
I think if you import from calitp after importing from siuba, it should work, but that's definitely not ideal!
Do you have any thoughts what might work here? It might be able to warn if it would override a variable (like tbl from calitp). Let me think about this a bit more...
Renaming tbl in calitp to something else might not be the worst idea, even if it means a bit of rework…
It looks like using Siuba's group_by and mutate verbs now raises a warning from Pandas
For example, running this works as expected but displays the FutureWarning