-
Notifications
You must be signed in to change notification settings - Fork 369
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
Make a DataFrame not iterable #1513
Comments
We need to add the code
somewhere. |
Makes sense. Though we may want to wait for a bit in case we decided to make data frames iterables over rows or columns (#1514). |
#1840 takes a different approach, which has quite strong advantages. |
Yes, and with #1840 you still can do |
Closing it as It is not related to being iterable - |
I recently ran into the following problem doing a bunch of regressions on a DataFrame
I needed the
Ref(df)
because otherwise Julia would try to iterate over a DataFrame. Since I don't think there is a way to just iterate through a DataFrame (we restrict iteration toeachcol
andeachrow
), we should maybe add a method foriterate(df::DataFrame)
that makes it work likeRef
.I forget what the exact solution here is to make Julia always treat a DataFrame like a scalar.
The text was updated successfully, but these errors were encountered: