home.social

#pythonpandas — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pythonpandas, aggregated by home.social.

  1. I need to make a fixed-width text file from a Pandas DataFrame.

    I followed a suggestion to use to_string method. I built out my solution only to find it adds a space between the columns in the output. A fixed-width file means each column must be an exact number of characters. I literally can't make the file I need with to_string.

    Making a fixed-width text file is a very easy task in SAS. Trying to do this with Pandas has been extremely frustrating.

    #PythonPandas #SASProgramming