Skip to content

Commit

Permalink
Fix dataset_validator merge indentation error
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelAlvarezC committed Apr 13, 2020
1 parent 58dfba9 commit 8665c4f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions task_geo/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ def check_dataset_format(data):
if granularity is not None:
min_granularity_term = LOCATION_TERMS[granularity]

locations = [data.columns.get_loc(LOCATION_TERMS[granularity])]
for term in LOCATION_TERMS[granularity + 1:]:
locations.append(check_column_and_get_index(term, data, min_granularity_term))
locations = [data.columns.get_loc(LOCATION_TERMS[granularity])]
for term in LOCATION_TERMS[granularity + 1:]:
locations.append(check_column_and_get_index(term, data, min_granularity_term))

message = 'The correct ordening of the columns is "country, region, sub_region, city"'
assert (locations[::-1] == sorted(locations)), message
message = 'The correct ordening of the columns is "country, region, sub_region, city"'
assert (locations[::-1] == sorted(locations)), message

message = 'date and timestamp columns should be of datetime dtype'
time_index = None
Expand Down

0 comments on commit 8665c4f

Please sign in to comment.