DOC: fix random state in geoplot voronoi example to prevent random errors (#933)

See ResidentMario/geoplot#69: depending on how the data are subsampled, we stumble into a potential bug in geoplot. So fixing the random state with a working one to prevent this.
This commit is contained in:
Joris Van den Bossche
2019-03-06 09:57:48 +01:00
committed by GitHub
parent 3c66dece17
commit 6dd50b80dc
+1 -1
View File
@@ -74,7 +74,7 @@ geoplot.polyplot(boroughs, ax=ax)
# using Voronoi tessellation.
ax = geoplot.voronoi(
injurious_collisions.sample(1000),
injurious_collisions.sample(1000, random_state=42),
hue='NUMBER OF PERSONS INJURED', cmap='Reds', scheme='fisher_jenks',
clip=boroughs.geometry,
linewidth=0)