Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3a1334f

Browse filesBrowse files
Fix wrong slicing in performance improvement example
Fix wrong slicing in performance improvement example and remove unused variable
1 parent 30f5523 commit 3a1334f
Copy full SHA for 3a1334f

File tree

1 file changed

+2
-3
lines changed
Filter options

1 file changed

+2
-3
lines changed

‎doc/python/lines-on-maps.md

Copy file name to clipboardExpand all lines: doc/python/lines-on-maps.md
+2-3Lines changed: 2 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.