dask.bag.from_url
dask.bag.from_url¶
- dask.bag.from_url(urls)[source]¶
Create a dask Bag from a url.
Examples
>>> 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