Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-40922

pyspark.pandas.read_csv supports reading multiple files, but that is undocumented

Rank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.1
    • 3.4.0
    • None

    Description

      The path argument of pyspark.pandas.read_csv(path, ...) currently has type annotation str and is documented as

          path : str
              The path string storing the CSV file to be read.
      

      The implementation however uses pyspark.sql.DataFrameReader.csv(path, ...) which does support multiple paths:

              path : str or list
                  string, or list of strings, for input path(s),
                  or RDD of Strings storing CSV rows.
      

      Loading multiple CSV files at once is a useful feature to have and should be documented (and tested for)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            soxofaan Stefaan Lippens
            soxofaan Stefaan Lippens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment