-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Accessing other rows than the current row #200
Comments
From dfhu...@gmail.com on November 14, 2010 03:42:27: |
From jluci...@gmail.com on January 12, 2011 19:16:30: |
From tfmorris on January 12, 2011 19:22:42: It's likely that you just need cells.column_name.value for your example. |
From TeamP...@gmail.com on June 16, 2011 11:43:17: This could be implemented as a modification of "Fill Down" that takes a GREL expression. |
From TeamP...@gmail.com on June 16, 2011 12:41:56: From this I was able to establish a sufficient number of known good 4 digit years. Then I created a new column called "LastGoodDate", based on the existence of 4 digit years, and used the fill down option on that new column. Now when I use a facet to display the remaining 2 digit versions, I have a reference to the last known good date that preceded it. I can exploit the natural ordering to better predict which part is the day versus the year. There are still more complex types of data where referencing a previous row is necessary to clean it up, I think I just lucked out this time. |
For use cases like this, where it is not clear how to achieve the desired result via the records mode, I would be in favour of letting users run code (Python, R…) on the entire table, modifying it in arbitrary ways. It would avoid the need to export the project, run it through a script or some other tool, and import it back again. We would need to expose the entire table in a suitable object in the guest language: pandas dataframe in Python, table in R… |
@wetneb or Apache Drill ;-) |
Drill is a query engine so it's less clear to me what its integration as an operation would look like - would you use it to replace the table by the query results? Or would you try to add support for (But I agree their integration of structured data in a columnar environment is clearly related) |
Supporting Selections (similar to how we allow users to select subdata various ways with GREL functions now, via parseJson() and parseHtml(), etc.) I initially thought of "wouldn't it be cool if" somehow exposing a new
I wonder what @tcbuzor thinks about this as well. |
Hi @tfmorris, while reading this, it came to me that now that the cross() function has been enhanced, I think you could get
Is there an angle I'm not seeing? Regards, Antoine |
@antoine2711 Anything that you see which was "authored" by me on October 14, 2012 is usually just an artifact of the import that I did of all old issues from Google Code on that date. You can see the original author (with obfuscated email) and date here:
Your workaround sounds plausible on the face of it, although I haven't tested it. Syntactically it's quite a bit more unwieldy than something like |
Shame, @tfmorris, it would have been a very productive day… 3:-) Yes, Regards, Antoine |
Yes @tfmorris, and, this made me think, and I created this issue for improvement: « Enhance Now, if that gets done, the comparaison would be:
The difference would be cosmetic. Regards, Antoine |
Original author: sanderse...@gmail.com (November 13, 2010 22:18:28)
I've searched through the issues and all the documentation I could find and come up blank, sorry if this has been answered elsewhere.
Is there any way of accessing rows other than the current row? Something like rows[rowIndex-1].cells["Column1"].value would be priceless. Unfortunately it doesn't work.
I'm looking for ways of computing moving averages etc and I need this feature. Thanks, and keep up the good work, this software looks great!
Original issue: http://code.google.com/p/google-refine/issues/detail?id=200
The text was updated successfully, but these errors were encountered: