You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "pralabhkumar (Jira)" <ji...@apache.org> on 2021/11/15 10:33:00 UTC

[jira] [Comment Edited] (SPARK-37181) pyspark.pandas.read_csv() should support latin-1 encoding

    [ https://issues.apache.org/jira/browse/SPARK-37181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17443720#comment-17443720 ] 

pralabhkumar edited comment on SPARK-37181 at 11/15/21, 10:32 AM:
------------------------------------------------------------------

from pyspark import pandas as ps

latin-1 encoding is same as  ISO-8859-1. You can mentioned the same . 

ps.read_csv("<>", encoding ='ISO-8859-1')

 

[~chconnell] 


was (Author: pralabhkumar):
from pyspark import pandas as ps

latin-1 encoding is same as  ISO-8859-1. You can mentioned the same . 

 

ps.read_csv("/Users/pralkuma/Desktop/rk_scaas/spark/a.txt", encoding ='ISO-8859-1')

> pyspark.pandas.read_csv() should support latin-1 encoding
> ---------------------------------------------------------
>
>                 Key: SPARK-37181
>                 URL: https://issues.apache.org/jira/browse/SPARK-37181
>             Project: Spark
>          Issue Type: Sub-task
>          Components: PySpark
>    Affects Versions: 3.2.0
>            Reporter: Chuck Connell
>            Priority: Major
>
> {{In regular pandas, you can say read_csv(encoding='latin-1'). This encoding is not recognized in pyspark.pandas. You have to use Windows-1252 instead, which is almost the same but not identical. }}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org