[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org