TST: refurbished to_csv ignores file mode GH3263
BUG: refurbished to_csv ignores file mode GH3263