コード例 #1
0
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']
コード例 #2
0
 def save_geotable(target_path, table):
     return TableType.save(target_path, table)
コード例 #3
0
 def save_geotable(target_path, table):
     t = geotable.GeoTable.from_records(table)
     return TableType.save(target_path, t)