openrefine


Import columns to existing OpenRefine project


How do I add a column from an external .csv file to an existing project?
I tried to find the solution online, but I wasn't successful.
Using the file you provided, I did this in less than one minute.
I had a project, with one column: .
If you know a little Python, try Jython. Edit Column > Add column based on this column and chose Language : Jython like this:
import csv
#we are going to use DictReader to transform our imported rows into dict,
#so we can latter just refer to the column we want by its key i.e header
rows = csv.DictReader(open('/home/yourusername/Downloads/example.csv'), delimiter=",")
for row in rows:
return row['Comprar'] #'comprar' is the header of the column i want

Related Links

How to save only specific JSON elements in a new OpenRefine column
Openrefine: cross.cell for similar but not identical values
OpenRefine changing the port and host when executable is run directly
How can I join two datasets using a key in OpenRefine, with the secondary table having more than one value?
Open Refine: Open Project Issue
Progressive number in Openrefine column
Lost all my files on Openrefine [closed]
freebaseapps reconciliation stuck in Open Refine 2.6
OpenRefine - add sequence number, reset for each record
How to transpose cell data by section in Open Refine?
OpenRefine columnwise scripting
Remove content inside parentheses
Extra blank space between words
forNonBlank function in OpenRefine
Import columns to existing OpenRefine project
Bulk replace text in all columns

Categories

HOME
cakephp
date
atom-editor
pypi
amazon-ec2
office365api
fme
azure-storage-tables
cross-validation
virtualization
windows-10-universal
postgres-xl
phaser
jsdoc
footer
apache-metamodel
ab-testing
predix
xlsxwriter
riot.js
kudan
fish
strncpy
replaceall
jspm
facebook-apps
semantic-versioning
language-concepts
environment-modules
plsql-psp
adobe-premiere
jquery-bootgrid
squib
mesos-chronos
ws-security
node-gyp
nxlog
wso2carbon
logfiles
taffy
datastax-startup
dropbox-php
elgg
nsarray
pearson
nbconvert
django-scheduler
blacklist
url-pattern
essence
yaws
freelancer.com-api
kendonumerictextbox
angular-leaflet-directive
sframe
responsive-images
twirl
system32
dereference
jscript.net
code-access-security
onactivityresult
fluentautomation
html5-notifications
.aspxauth
dataservice
buster.js
seed
rdoc
coderush
dice
tridion-worldserver
qtkit
subgurim-maps
xtype
locate
lang
yslow
paster
filtered-index
bespin
zend-tool
nintendo-ds
libs
backcolor
django-notification

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App