-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many functions want vector, DataFrame produces DataArray #368
Comments
You should try using the Beyond that, this isn't a simple thing to resolve. We should change most functions to work on This is certainly going to be one of the hardest points of transitions between Julia and R, but it's basically exactly what happens in Python and NumPy with two distinct types of arrays. The reason this seems like a non-issue in R is that R doesn't have an I think it would be better to open specific issues for functions we need to extend to work on |
DataFrames are now mostly agnostic to the underlying column type, so if you put Vectors in, you get Vectors out. |
I ran into this problem first with Gadfly:
by manually changing the type specification of bin_count_1d, it worked, and plotted nicely. I then tried Geom.density, and now the kde function from Distributions complained, making me realize that this went beyond the Gadfly package.
This seems very impractical and illogical... I'm not sure if all functions have to be rewritten to use AbstractVector, or how this could be solved, but it's the first time I've had Julia's type system hit me in the head - in a duck-typing system, you'd say that if it was able to give you a bunch of numbers, go calculate...
Just by removing the type signatures from the function call in kde (and bandwidth):
The text was updated successfully, but these errors were encountered: