You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to be able to apply functions to both rows and columns over a DataFrame. The dimension of the returned Series should be compatible with each other. Additionally, when applying functions over rows, since we can't expect the columns to be all of the same type, we will have to cast the types.
so maybe the output is as expected ?
if so, please close the issue~
Yeah, when using Rapply you cannot expect the aggregate function to rename the functions for you. The type casting is a necessity as well and working as intended.
If your aggregate function intends to return the same number of rows and you want to keep the column name you should rename the dataframe accordingly.
Thank you for the comment! If you disagree with the current behaviour feel free to continue the discussion here, for the time being I'm closing this issue.
Hi alex, thank you for your great work.
I noticed that the column names get lost after calling Rapply during my tests, also the detected types.
test codes:
output:
The text was updated successfully, but these errors were encountered: