MCPcopy
hub / github.com/dask/dask / test_skipinitialspace

Function test_skipinitialspace

dask/dataframe/io/tests/test_csv.py:574–589  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

572
573
574def test_skipinitialspace():
575 text = normalize_text("""
576 name, amount
577 Alice,100
578 Bob,-200
579 Charlie,300
580 Dennis,400
581 Edith,-500
582 Frank,600
583 """)
584
585 with filetext(text) as fn:
586 df = dd.read_csv(fn, skipinitialspace=True, blocksize=20)
587
588 assert "amount" in df.columns
589 assert df.amount.max().compute() == 600
590
591
592def test_consistent_dtypes():

Callers

nothing calls this directly

Calls 5

filetextFunction · 0.90
normalize_textFunction · 0.85
read_csvMethod · 0.80
computeMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…