Writing formatted csv files using python f strings is very slow. This same method is also used by np.savetxt. Below is a profiling example showing where the python code is slowest when writing a SPLT ...