本文介绍了达沙袋read_text()行顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

dask.bag.read_text()是否保留行顺序?从多个文件读取时仍保留吗?

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'])


推荐答案

非正式地,是的,大多数Dask.bag操作确实保留了顺序。

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.

这篇关于达沙袋read_text()行顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 07:44