Comments (12)
Yeah, I agree, it would be useful to have your expression return an array and
have gw treat that as a way to
build multiple columns... the problem though is that an expression could yield
arrays with different length on
each row, which means that gw would have to do this in two passes: the first to
understand how many
columns will have to be created in total (taking the max of all the arrays
returned by applying the expression
on each row) and the second to create and fill up the cells in the new columns.
Another issue is naming the columns, but we could just come up with random
names (say columnXX with an
incremental counter).
Another option is to have some sort of 'column creator manifest', something like
{{{
value.split(',').make_columns({ "something" : result[0], "whatever" : result[1] });
}}}
but gets very verbose pretty fast.
Thoughts?
Original comment by [email protected]
on 14 May 2010 at 4:13
- Added labels: ****
- Removed labels: ****
from google-refine.
Actually the existing column splitting command already deals with both issues.
We only
need to make it take any arbitrary expression that produces arrays.
Original comment by [email protected]
on 14 May 2010 at 4:37
- Changed state: Accepted
- Added labels: ****
- Removed labels: ****
from google-refine.
Original comment by [email protected]
on 27 May 2010 at 2:11
- Added labels: Milestone-Release1.1
- Removed labels: ****
from google-refine.
Original comment by [email protected]
on 27 May 2010 at 2:17
- Added labels: Milestone-1.1
- Removed labels: Milestone-Release1.1
from google-refine.
Does this issue also deal with a simple UI interface for Edit Column / Join ???
For
example, I have 2 or more columns (first name, last name) that I want to easily
combine
in order to reconcile with /person, and I simply just type the column names
themselves
with a , separator to handle performing the join upon apply into my new column
name.
We have Edit Cell / Join but no Edit Column / Join ??
Original comment by thadguidry
on 29 May 2010 at 8:18
- Added labels: ****
- Removed labels: ****
from google-refine.
Original comment by iainsproat
on 23 Jun 2010 at 6:06
- Added labels: Component-Logic, Type-Enhancement, Usability
- Removed labels: Milestone-1.1, Type-Defect
from google-refine.
Original comment by [email protected]
on 18 Jul 2010 at 1:03
- Added labels: Milestone-1.5
- Removed labels: ****
from google-refine.
Original comment by [email protected]
on 27 Sep 2010 at 10:02
- Added labels: Milestone-2.0
- Removed labels: ****
from google-refine.
Original comment by [email protected]
on 27 Sep 2010 at 10:10
- Added labels: Milestone-2.x
- Removed labels: Milestone-2.0
from google-refine.
In case anyone is looking for a simple workaround to join two columns (for
example, joining a firstname and lastname column into a single 'name' column) -
I found the simplest solution was to export the data from Refine as an Excel
spreadsheet, and then to use the 'concatenate' function in Excel to join them.
The concatenate formula (including a whitespace between the firstname and
lastname) is:
=A2&" "&B2
I found that for this to work neatly, you should use Refine to trim the
whitespace from before and after the text strings. Other than that, worked a
charm!
Original comment by [email protected]
on 31 Jul 2011 at 5:44
- Added labels: ****
- Removed labels: ****
from google-refine.
Remove obsolete milestone
Original comment by tfmorris
on 18 Sep 2012 at 5:20
- Added labels: ****
- Removed labels: ****
from google-refine.
Original comment by tfmorris
on 18 Sep 2012 at 5:21
- Added labels: ****
- Removed labels: Milestone-2.x
from google-refine.
Related Issues (20)
- Delievered "Collapse whitespace" transformation does not work HOT 6
- Transform dialog should remember preferred language. HOT 6
- Maximum number of facet values should be configurable. HOT 11
- Primary grid should be sortable by columns HOT 7
- Manually selecting a Freebase reconciliation match returns the grid to page 1. HOT 3
- Behavior of Text Filter is unpredictable when "regular expression" mode is enabled. HOT 4
- [Wishlist] Ability to re-order columns HOT 2
- [Wishlist] match() function to turn results of regexp groups into an array HOT 8
- [Wishlist] Fix the table header so that it's always visible when scrolling a long page HOT 7
- Support localized user interface HOT 3
- Facet by date HOT 8
- Envelope quotation marks are removed by CSV importer HOT 7
- jython re expression doesn't work HOT 2
- SeparatorRowParser handles blanks differently from TsvCsvRowParser HOT 3
- Error 500 Problem accessing /command/create-project-from-upload HOT 4
- Renaming Cells with Ctrl-Enter produced ERROR HOT 8
- Array literals in GEL HOT 6
- Browser this cluster does not work HOT 3
- Refactor command registration to allow command extensions HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-refine.