Skip to content

Commit

Permalink
Merge pull request #298 from CartoDB/296-Removed_createdate_column_LODES
Browse files Browse the repository at this point in the history
Removed createdate column from LODES
  • Loading branch information
Javier Torres committed Sep 12, 2017
2 parents f562b32 + 22559cf commit 79d50b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tasks/us/census/lodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def requires(self):
}

def version(self):
return 2
return 3

def columns(self):
input_ = self.input()
Expand Down Expand Up @@ -561,11 +561,6 @@ def columns(self):
targets={total_jobs: 'denominator'},
tags=[tags['employment'], tags['commerce_economy']]
)),
('createdate', OBSColumn(
type='Date',
name='Date on which data was created, formatted as YYYYMMDD ',
weight=0
)),
])
for colname, col in cols.iteritems():
col.tags.append(source)
Expand Down Expand Up @@ -611,7 +606,7 @@ class WorkplaceAreaCharacteristics(TableTask):
year = IntParameter(default=2013)

def version(self):
return 0
return 1

def requires(self):
return {
Expand All @@ -635,7 +630,7 @@ def columns(self):
def populate(self):
for infile in self.input()['data']:
# gunzip each CSV into the table
cmd = r"gunzip -c '{input}' | psql -c '\copy {tablename} FROM STDIN " \
cmd = r"gunzip -c '{input}' | cut -d',' -f-52 | psql -c '\copy {tablename} FROM STDIN " \
r"WITH CSV HEADER'".format(input=infile.path,
tablename=self.output().table)
print cmd
Expand Down
1 change: 1 addition & 0 deletions tasks/us/census/spielman_singleton_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def columns(self):
columns.update(self.input()['columns'])
return columns


class SpielmanSingletonColumns(ColumnsTask):

x10_mapping = {
Expand Down

0 comments on commit 79d50b5

Please sign in to comment.