简体   繁体   English

达克斯袋read_text()行顺序

[英]Dask Bag read_text() line order

Does dask.bag.read_text() preserve the line order? dask.bag.read_text()是否保留行顺序? Is it still preserved when reading from multiple files? 从多个文件读取时仍保留吗?

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

Informally, yes, most Dask.bag operations do preserve order. 非正式地,是的,大多数Dask.bag操作确实会保留顺序。

This behavior is not strictly guaranteed, however I don't see any reason to anticipate a change in the near future. 不能严格保证这种行为,但是我看不出有什么理由在不久的将来会发生变化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Pathlib read_text 作为字符串文字 - Pathlib read_text as a string literal Python read_text() 添加额外的字符串 - Python read_text() adding extra strings 是否可以在 Python 脚本中使用 read_text() 获取变量的内容? - Is it possible to get the contents of a variable with read_text() in Python script? 加速文本文件的 DASK 包处理? - Speeding up DASK bag processing of a text file? 如何将 append 一个 DASK 包转至另一个 DASK 包? - How to append a DASK bag to another DASK bag? 使用 bag.read_text 读取多个文件时如何保留行号? - how to keep the line number when using bag.read_text to read multiple files? Weasyprint 在调用 write_pdf 时获得未定义的属性:“AttributeError: 'PosixPath' 对象没有属性 'read_text'” - Weasyprint get undefined property at invoking write_pdf: "AttributeError: 'PosixPath' object has no attribute 'read_text'" pathlib read_text() 方法如何在 Windows 10 Enterprise 上正确显示 German Umlaute? - How can pathlib read_text() method display German Umlaute correctly on Windows 10 Enterprise? AttributeError: 'PosixPath' object 在构建 heroku 应用程序时没有属性 'read_text' - AttributeError: 'PosixPath' object has no attribute 'read_text' while building heroku app 数据包发行问题 - Dask bag to Dataframe Issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM