MCPcopy
hub / github.com/PokeAPI/pokeapi / load_data

Function load_data

data/v2/build.py:83–87  ·  view source on GitHub ↗
(file_name)

Source from the content-addressed store, hash-verified

81
82
83def load_data(file_name):
84 # with_iter closes the file when it has finished
85 return csv.reader(
86 with_iter(open(DATA_LOCATION + file_name, "rt", encoding="utf8")), delimiter=","
87 )
88
89
90def clear_table(model):

Callers 2

build_genericFunction · 0.85
_build_pokemonsFunction · 0.85

Calls 1

with_iterFunction · 0.85

Tested by

no test coverage detected