-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
to_string() does not have an "encoding" parameter. #28766
Comments
Can you give an example of the expected behavior and API parameters? |
Just like to_csv() and to_excel() have an "encoding" parameters, we can have an encoding parameter in string for consistency. df.to_string(encoding = "iso-8859-1") |
Might not be thinking straight today but wouldn't this only make sense if it were a |
Agreed with Will. An encoding is only necessary when going between strings
and bytes. But we're converting from a Python object to a string.
…On Thu, Oct 3, 2019 at 4:43 PM William Ayd ***@***.***> wrote:
Might not be thinking straight today but wouldn't this only make sense if
it were a to_bytes method? Not applicable for to_string, no?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28766?email_source=notifications&email_token=AAKAOITGN7FSSWSDBQQ27R3QMZRRPA5CNFSM4I46HERKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJWDTQ#issuecomment-538141134>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOIVF6V2DFWHXZPJ7MYLQMZRRPANCNFSM4I46HERA>
.
|
|
Forgot about the In that case, accepting an |
Code Sample, a copy-pastable example if possible
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here below this line]INSTALLED VERSIONS
commit : None
python : 3.7.1.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.0
numpy : 1.16.2
pytz : 2018.7
dateutil : 2.7.5
pip : 18.1
setuptools : 40.6.3
Cython : 0.29.2
pytest : 4.0.2
hypothesis : None
sphinx : 1.8.2
blosc : None
feather : 0.4.0
xlsxwriter : 1.1.2
lxml.etree : 4.2.5
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.3 (dt dec pq3 ext lo64)
jinja2 : 2.10
IPython : 7.2.0
pandas_datareader: None
bs4 : 4.6.3
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.2.5
matplotlib : 3.0.2
numexpr : 2.6.8
odfpy : None
openpyxl : 2.5.12
pandas_gbq : None
pyarrow : 0.13.0
pytables : None
s3fs : None
scipy : 1.1.0
sqlalchemy : 1.2.15
tables : 3.4.4
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.1.2
The text was updated successfully, but these errors were encountered: