用法:
dask.bag.from_url(urls)
從 url 創建一個 dask Bag。
例子:
>>> a = from_url('http://raw.githubusercontent.com/dask/dask/main/README.rst') >>> a.npartitions 1
>>> a.take(8) (b'Dask\n', b'====\n', b'\n', b'|Build Status| |Coverage| |Doc Status| |Discourse| |Version Status| |NumFOCUS|\n', b'\n', b'Dask is a flexible parallel computing library for analytics. See\n', b'documentation_ for more information.\n', b'\n')
>>> b = from_url(['http://github.com', 'http://google.com']) >>> b.npartitions 2
相關用法
- Python dask.bag.from_sequence用法及代碼示例
- Python dask.bag.from_delayed用法及代碼示例
- Python dask.bag.Bag.frequencies用法及代碼示例
- Python dask.bag.Bag.to_textfiles用法及代碼示例
- Python dask.bag.Bag.repartition用法及代碼示例
- Python dask.bag.Bag.join用法及代碼示例
- Python dask.bag.Bag.accumulate用法及代碼示例
- Python dask.bag.Bag.fold用法及代碼示例
- Python dask.bag.Bag.map_partitions用法及代碼示例
- Python dask.bag.Bag.groupby用法及代碼示例
- Python dask.bag.map用法及代碼示例
- Python dask.bag.Bag.reduction用法及代碼示例
- Python dask.bag.Bag.foldby用法及代碼示例
- Python dask.bag.range用法及代碼示例
- Python dask.bag.Bag.flatten用法及代碼示例
- Python dask.bag.random.sample用法及代碼示例
- Python dask.bag.Bag.remove用法及代碼示例
- Python dask.bag.Bag.random_sample用法及代碼示例
- Python dask.bag.random.choices用法及代碼示例
- Python dask.bag.Item.visualize用法及代碼示例
注:本文由純淨天空篩選整理自dask.org大神的英文原創作品 dask.bag.from_url。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。