Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to_fwf support #10415

Open
cancan101 opened this issue Jun 23, 2015 · 4 comments
Open

Add to_fwf support #10415

cancan101 opened this issue Jun 23, 2015 · 4 comments

Comments

@cancan101
Copy link
Contributor

Right now pandas can read fwf but there is no to_fwf.
From SO.

This output format seems similar to what numpy.savetxt handles.

@jreback
Copy link
Contributor

jreback commented Jun 23, 2015

see xref here: #3190

@jreback jreback added Enhancement Output-Formatting __repr__ of pandas objects, to_string IO CSV read_csv, to_csv labels Jun 23, 2015
@jreback jreback added this to the Someday milestone Jun 23, 2015
@jbrockmendel jbrockmendel added IO Fixed Width read_fwf and removed IO CSV read_csv, to_csv labels Dec 11, 2019
@mroeschke mroeschke removed the Output-Formatting __repr__ of pandas objects, to_string label Apr 18, 2021
@mroeschke mroeschke removed this from the Someday milestone Oct 13, 2022
@koubaa
Copy link

koubaa commented Nov 7, 2022

Hello! Try using hollerith. pypi github. It's a (very) new python library that I developed that deals with fixed width formatting - and open to contribution. Unfortunately trying to use built-in python string formatting (or the C printf for that matter!) for fixed width doesn't work well for some widths when there are large integers and certain double precision floats.

@swarajban
Copy link

+1 on this feature request

@Tammura
Copy link

Tammura commented May 6, 2024

Anyone is working on this feature? I'm trying using to_string() method but it has no option to remove space between output columns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants