Skip to content

Commit

Permalink
fix: update demonstration kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 24, 2023
1 parent 8cd0757 commit d668e0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kernel-specification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4500,14 +4500,14 @@ kernels:
description: null
definition: |
def awkward_Index_nones_as_index(toindex, length):
last_index = 0
num_non_null = 0
for i in range(length):
if toindex[i] > last_index:
last_index = toindex[i]
if toindex[i] != -1:
num_non_null += 1
for i in range(length):
if toindex[i] == -1:
last_index = last_index + 1
toindex[i] = last_index
toindex[i] = num_non_null
num_non_null += 1
automatic-tests: false
manual-tests: []

Expand Down

0 comments on commit d668e0c

Please sign in to comment.