Dask Bag read_text() line order

老子叫甜甜 提交于 2019-12-12 03:43:30

问题


Does dask.bag.read_text() preserve the line order? Is it still preserved when reading from multiple files?

bag = db.read_text('program.log')
bag = db.read_text(['program.log', 'program.log.1'])

回答1:


Informally, yes, most Dask.bag operations do preserve order.

This behavior is not strictly guaranteed, however I don't see any reason to anticipate a change in the near future.



来源:https://stackoverflow.com/questions/39652733/dask-bag-read-text-line-order

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!