-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Bug on .to_string(index=False) #24980
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
Comments
.to_string(index=False)
.to_string(index=False)
Here's a simpler example. Agreed that the extra whitespace is not expected. Investigations and PR's welcome!
|
seems this is brought up on purpose in if leading_space is False:
# False specifically, so that the default is
# to include a space if we get here.
tpl = u'{v}'
else:
tpl = u' {v}' |
@charlesdong1991 that was added for a different reason (formatting ExtensionArrays IIRC). We could maybe pass |
@TomAugspurger thanks for your reply... yes, i did try setting |
Pushing to 0.24.2 |
Any news on this? I'm still having the same issue on version |
there is an open LR #29670 but i believe was quite tricky changing this - help welcome |
Thanks for your reply. I was just checking it and it seems there is only one conflict. I will wait if someone already experimented fixes it or I will become an expert myself and try to help :) |
Is anyone here still working on this? |
Not really, I just fixed my version to one in which this does not exists. I wish I could fix it but I haven't had the chance. |
Hi @charlesdong1991 , it seems in #29670 you have already solved the errors, so what's the problem at that time? |
I've changed all |
go-ahead for opening a PR, and make any changes you need. I don't mind at all ^^ @onshek |
Code Sample, a copy-pastable example if possible
Related issue (very old though) #11833
The output of this running on pandas 0.24.0 is:
(I put this in a file called
pandasbug.py
)Problem description
Exactly when
0.24.0
was released my automatic builds started to fail. The problem, a file not found.This was erroneously reported by me on astropy/ccdproc#658
I'm using a pandas data frame to filter a set of reference files and when extracting the file name and join it to a full path it turns out a non-existing path such as:
/full/path/to/[unwanted-blank-here]file_name.fits
(/full/path/to/ file_name.fits
)This travis build will show the real-world error caused, if you can access it.
Expected Output
In my system I have pandas 0.20.3 working with python 3.6 and the latests working build ran pandas
0.23.4
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.7.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.0-1.el7.elrepo.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.0
pytest: 4.1.1
pip: 18.1
setuptools: 40.6.3
Cython: 0.29.2
numpy: 1.15.2
scipy: 1.2.0
pyarrow: None
xarray: None
IPython: None
sphinx: 1.8.3
patsy: None
dateutil: 2.7.5
pytz: 2018.9
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
The text was updated successfully, but these errors were encountered: