xref: https://github.com/pydata/pandas/issues/2397 xref #14263 (example) I _think_ that we should protect the file open/closes with a lock to avoid this problem.