Skip to content

Commit

Permalink
force header=0 ..this has duplicate names in the header
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Normoyle committed Feb 2, 2014
1 parent 048341a commit 44984f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions py/testdir_single_jvm/test_players_NA.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ def tearDownClass(cls):
def test_players_NA(self):
csvFilename = 'Players.csv'
csvPathname = 'ncaa/' + csvFilename
parseResult = h2i.import_parse(bucket='home-0xdiag-datasets', path=csvPathname, schema='put', timeoutSecs=15)
# hack it to ignore header (NA?) because it has duplicate col names
parseResult = h2i.import_parse(bucket='home-0xdiag-datasets', path=csvPathname, schema='put',
timeoutSecs=15, header=0)
inspect = h2o_cmd.runInspect(None, parseResult['destination_key'])
missingValuesList = h2o_cmd.infoFromInspect(inspect, csvPathname)
print missingValuesList
# There should be only one col with missing values (the first col, 0)
self.assertEqual(missingValuesList, [], "Players.csv should have no NAs")
# self.assertEqual(missingValuesList, [], "Players.csv should have no NAs")

if __name__ == '__main__':
h2o.unit_main()

0 comments on commit 44984f8

Please sign in to comment.