Closed typeless closed 6 years ago
You are right, that is a typo, it should be df.Capply(mean)
and df.Rapply(mean)
, you can check the docs here:
I don't quite understand how Rapply
works despite having read the documentation and looked into the code. Are the elements of the row processed by Rapply
necessarily the same type?
When creating a series.Series
for a given type all the elements will be converted to said type. In case of Rapply
each row is first casted to the appropriate type with priority: String -> Float -> Int -> Bool
. What this means is that if you have a column of type String
and the rest of the columns are of type Int
, the row will be casted to a String type. This casted row is then passed to the function to apply.
Fixed on #40
The function application example in the README:
CBind
andRBind
seem to receive aDataFrame
value rather than a function value. (?)