MCPcopy Create free account
hub / github.com/dask/dask / read_files

Function read_files

dask/dataframe/io/tests/test_csv.py:127–130  ·  view source on GitHub ↗
(file_names=csv_files)

Source from the content-addressed store, hash-verified

125
126
127def read_files(file_names=csv_files):
128 df = pd.concat([pd.read_csv(BytesIO(csv_files[k])) for k in sorted(file_names)])
129 df = df.astype({"name": get_string_dtype(), "amount": int, "id": int})
130 return df
131
132
133def read_files_with(file_names, handler, **kwargs):

Callers 4

test_read_csv_filesFunction · 0.85
test_read_csv_files_listFunction · 0.85

Calls 3

get_string_dtypeFunction · 0.90
read_csvMethod · 0.80
astypeMethod · 0.45

Tested by

no test coverage detected