mirror of
https://github.com/wassname/geopandas.git
synced 2026-10-04 12:40:08 +08:00
TST: fix the tests for >= python 3.6 (#759)
This commit is contained in:
1 parent
62c39fb8a1
commit
a7c3bafe50
2 files changed
+3
-3
No files matched your search
@@ -522,7 +522,7 @@ class TestGeomMethods:
|
||||
test_df = df.explode()
|
||||
|
||||
expected_s = GeoSeries([Point(1, 2), Point(2, 3), Point(5, 5)])
|
||||
expected_df = GeoDataFrame({'geometry': expected_s, 'col': [1, 1, 2]})
|
||||
expected_df = GeoDataFrame({'col': [1, 1, 2], 'geometry': expected_s})
|
||||
expected_index = MultiIndex(levels=[[0, 1], [0, 1]],
|
||||
labels=[[0, 0, 1], [0, 1, 0]],
|
||||
names=[index_name, None])
|
||||
|
||||
@@ -12,8 +12,8 @@ s1 = GeoSeries([Polygon([(0, 0), (2, 0), (2, 2), (0, 2)]),
|
||||
s2 = GeoSeries([Polygon([(0, 2), (0, 0), (2, 0), (2, 2)]),
|
||||
Polygon([(2, 2), (4, 2), (4, 4), (2, 4)])])
|
||||
|
||||
df1 = GeoDataFrame({'geometry': s1, 'col1': [1, 2]})
|
||||
df2 = GeoDataFrame({'geometry': s2, 'col1': [1, 2]})
|
||||
df1 = GeoDataFrame({'col1': [1, 2], 'geometry': s1})
|
||||
df2 = GeoDataFrame({'col1': [1, 2], 'geometry': s2})
|
||||
|
||||
|
||||
def test_geoseries():
|
||||
|
||||
Reference in new issue
Block a user