You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/10/26 14:01:00 UTC
[jira] [Commented] (SPARK-40922) pyspark.pandas.read_csv supports reading multiple files, but that is undocumented
[ https://issues.apache.org/jira/browse/SPARK-40922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17624482#comment-17624482 ]
Apache Spark commented on SPARK-40922:
--------------------------------------
User 'soxofaan' has created a pull request for this issue:
https://github.com/apache/spark/pull/38399
> pyspark.pandas.read_csv supports reading multiple files, but that is undocumented
> ---------------------------------------------------------------------------------
>
> Key: SPARK-40922
> URL: https://issues.apache.org/jira/browse/SPARK-40922
> Project: Spark
> Issue Type: Documentation
> Components: Pandas API on Spark, PySpark
> Affects Versions: 3.3.1
> Reporter: Stefaan Lippens
> Priority: Minor
>
> The {{path}} argument of {{pyspark.pandas.read_csv(path, ...)}} currently has type annotation {{str}} and is documented as
> {code}
> path : str
> The path string storing the CSV file to be read.
> {code}
> The implementation however uses {{pyspark.sql.DataFrameReader.csv(path, ...)}} which does support multiple paths:
> {code}
> path : str or list
> string, or list of strings, for input path(s),
> or RDD of Strings storing CSV rows.
> {code}
> Loading multiple CSV files at once is a useful feature to have and should be documented (and tested for)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org