MCPcopy
hub / github.com/pandas-dev/pandas / extract

Method extract

pandas/io/parsers/base_parser.py:237–238  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

235 raise ParserError("Header rows must have an equal number of columns.")
236
237 def extract(r):
238 return tuple(r[i] for i in range(field_count) if i not in sic)
239
240 columns = list(zip(*(extract(r) for r in header), strict=True))
241 names = columns.copy()

Calls

no outgoing calls