def test_newlines(tmpdir): source_path = join(TESTS_FOLDER, 'newline.csv') target_path = str(tmpdir.join('newline.csv')) t = TableType.load(source_path) assert '\r' in t.iloc[1]['name'] TableType.save(target_path, t) t = TableType.load(target_path) assert '\r' in t.iloc[1]['name']
def save_geotable(target_path, table): return TableType.save(target_path, table)
def save_geotable(target_path, table): t = geotable.GeoTable.from_records(table) return TableType.save(target_path, t)