Skip to content

Commit 8289eb1

Browse files
Merge pull request #2769 from danieleldjarn/patch-2
Fix wrong slicing in performance improvement example
2 parents 30f5523 + 3a1334f commit 8289eb1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/python/lines-on-maps.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,17 @@ fig.add_trace(go.Scattergeo(
144144
)
145145
)))
146146

147-
flight_paths = []
148147
lons = []
149148
lats = []
150149
import numpy as np
151150
lons = np.empty(3 * len(df_flight_paths))
152151
lons[::3] = df_flight_paths['start_lon']
153152
lons[1::3] = df_flight_paths['end_lon']
154-
lons[::3] = None
153+
lons[2::3] = None
155154
lats = np.empty(3 * len(df_flight_paths))
156155
lats[::3] = df_flight_paths['start_lat']
157156
lats[1::3] = df_flight_paths['end_lat']
158-
lats[::3] = None
157+
lats[2::3] = None
159158

160159
fig.add_trace(
161160
go.Scattergeo(

0 commit comments

Comments
 (0)