Top "Enumerate" questions

Related to functions or methods that return enumerations or enumerated-types.

Python enumerate through 2D array in numpy

I want a function that behaves like enumerate, but on numpy arrays. >>> list(enumerate("hello")) [(0, "h"), (1, "e"), (2, "…

python arrays numpy enumerate
Python enumerate reverse index only

I am trying to reverse the index given by enumerate whilst retaining the original order of the list being enumerated. …

python python-3.x reverse enumerate
(Python) Counting lines in a huge (>10GB) file as fast as possible

I have a really simple script right now that counts lines in a text file using enumerate(): i = 0 f = open("…

python enumerate line-count
Enumerate Dictionary Iterating Key and Value

I have a dictionary called regionspointcount that holds region names (str) as the keys and a count of a type …

python python-3.x dictionary enumerate
Basic python file-io variables with enumerate

New to python and trying to learn the ropes of file i/o. I am working with pulling lines from …

python file-io enumerate
Latex - skip numbering in an enumerate environment

I would like to skip numbering in a Latex enumerate environment to generate lists as follows: (1) Item 1.. (2) Item 2.. (5) Item 5.. (6) Item 6.. …

latex enumerate
Python - Go through list without last element

I have a list of tuples and want to create a new list. The elements of the new list are …

python list loops tuples enumerate
Changing the numberings of nested lists in an Enumerate environment, in LaTeX

I want to produce the following in LaTeX: 1. Item 2. Item 3a. Item 3b. Item 4. Item 5. Item Basically I have already …

latex enumerate
Serial port enumeration in Delphi using SetupDiGetClassDevs

I'm trying to enumerate "friendly names" for COM ports. The ports may dynamically change as USB-serial devices are connected and …

delphi serial-port enumerate