| |
| <!DOCTYPE html> |
| |
| <html> |
| <head> |
| <meta charset="utf-8" /> |
| <title>Overview: module code — PySpark 3.5.4 documentation</title> |
| |
| <link href="../_static/styles/theme.css?digest=1999514e3f237ded88cf" rel="stylesheet"> |
| <link href="../_static/styles/pydata-sphinx-theme.css?digest=1999514e3f237ded88cf" rel="stylesheet"> |
| |
| |
| <link rel="stylesheet" |
| href="../_static/vendor/fontawesome/5.13.0/css/all.min.css"> |
| <link rel="preload" as="font" type="font/woff2" crossorigin |
| href="../_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2"> |
| <link rel="preload" as="font" type="font/woff2" crossorigin |
| href="../_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2"> |
| |
| |
| |
| |
| |
| <link rel="stylesheet" href="../_static/styles/pydata-sphinx-theme.css" type="text/css" /> |
| <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> |
| <link rel="stylesheet" type="text/css" href="../_static/copybutton.css" /> |
| <link rel="stylesheet" type="text/css" href="../_static/css/pyspark.css" /> |
| |
| <link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf"> |
| |
| <script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> |
| <script src="../_static/jquery.js"></script> |
| <script src="../_static/underscore.js"></script> |
| <script src="../_static/doctools.js"></script> |
| <script src="../_static/language_data.js"></script> |
| <script src="../_static/clipboard.min.js"></script> |
| <script src="../_static/copybutton.js"></script> |
| <script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script> |
| <script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script> |
| <script type="text/x-mathjax-config">MathJax.Hub.Config({"tex2jax": {"inlineMath": [["$", "$"], ["\\(", "\\)"]], "processEscapes": true, "ignoreClass": "document", "processClass": "math|output_area"}})</script> |
| <link rel="canonical" href="https://spark.apache.org/docs/latest/api/python/_modules/index.html" /> |
| <link rel="search" title="Search" href="../search.html" /> |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| <meta name="docsearch:language" content="None"> |
| |
| |
| <!-- Google Analytics --> |
| |
| </head> |
| <body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80"> |
| |
| <div class="container-fluid" id="banner"></div> |
| |
| |
| <nav class="navbar navbar-light navbar-expand-lg bg-light fixed-top bd-navbar" id="navbar-main"><div class="container-xl"> |
| |
| <div id="navbar-start"> |
| |
| |
| |
| <a class="navbar-brand" href="../index.html"> |
| <img src="../_static/spark-logo-reverse.png" class="logo" alt="logo"> |
| </a> |
| |
| |
| |
| </div> |
| |
| <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-collapsible" aria-controls="navbar-collapsible" aria-expanded="false" aria-label="Toggle navigation"> |
| <span class="navbar-toggler-icon"></span> |
| </button> |
| |
| |
| <div id="navbar-collapsible" class="col-lg-9 collapse navbar-collapse"> |
| <div id="navbar-center" class="mr-auto"> |
| |
| <div class="navbar-center-item"> |
| <ul id="navbar-main-elements" class="navbar-nav"> |
| <li class="toctree-l1 nav-item"> |
| <a class="reference internal nav-link" href="../index.html"> |
| Overview |
| </a> |
| </li> |
| |
| <li class="toctree-l1 nav-item"> |
| <a class="reference internal nav-link" href="../getting_started/index.html"> |
| Getting Started |
| </a> |
| </li> |
| |
| <li class="toctree-l1 nav-item"> |
| <a class="reference internal nav-link" href="../user_guide/index.html"> |
| User Guides |
| </a> |
| </li> |
| |
| <li class="toctree-l1 nav-item"> |
| <a class="reference internal nav-link" href="../reference/index.html"> |
| API Reference |
| </a> |
| </li> |
| |
| <li class="toctree-l1 nav-item"> |
| <a class="reference internal nav-link" href="../development/index.html"> |
| Development |
| </a> |
| </li> |
| |
| <li class="toctree-l1 nav-item"> |
| <a class="reference internal nav-link" href="../migration_guide/index.html"> |
| Migration Guides |
| </a> |
| </li> |
| |
| |
| </ul> |
| </div> |
| |
| </div> |
| |
| <div id="navbar-end"> |
| |
| <div class="navbar-end-item"> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <div id="version-button" class="dropdown"> |
| <button type="button" class="btn btn-secondary btn-sm navbar-btn dropdown-toggle" id="version_switcher_button" data-toggle="dropdown"> |
| 3.5.4 |
| <span class="caret"></span> |
| </button> |
| <div id="version_switcher" class="dropdown-menu list-group-flush py-0" aria-labelledby="version_switcher_button"> |
| <!-- dropdown will be populated by javascript on page load --> |
| </div> |
| </div> |
| |
| <script type="text/javascript"> |
| // Function to construct the target URL from the JSON components |
| function buildURL(entry) { |
| var template = "https://spark.apache.org/docs/{version}/api/python/index.html"; // supplied by jinja |
| template = template.replace("{version}", entry.version); |
| return template; |
| } |
| |
| // Function to check if corresponding page path exists in other version of docs |
| // and, if so, go there instead of the homepage of the other docs version |
| function checkPageExistsAndRedirect(event) { |
| const currentFilePath = "_modules/index.html", |
| otherDocsHomepage = event.target.getAttribute("href"); |
| let tryUrl = `${otherDocsHomepage}${currentFilePath}`; |
| $.ajax({ |
| type: 'HEAD', |
| url: tryUrl, |
| // if the page exists, go there |
| success: function() { |
| location.href = tryUrl; |
| } |
| }).fail(function() { |
| location.href = otherDocsHomepage; |
| }); |
| return false; |
| } |
| |
| // Function to populate the version switcher |
| (function () { |
| // get JSON config |
| $.getJSON("https://spark.apache.org/static/versions.json", function(data, textStatus, jqXHR) { |
| // create the nodes first (before AJAX calls) to ensure the order is |
| // correct (for now, links will go to doc version homepage) |
| $.each(data, function(index, entry) { |
| // if no custom name specified (e.g., "latest"), use version string |
| if (!("name" in entry)) { |
| entry.name = entry.version; |
| } |
| // construct the appropriate URL, and add it to the dropdown |
| entry.url = buildURL(entry); |
| const node = document.createElement("a"); |
| node.setAttribute("class", "list-group-item list-group-item-action py-1"); |
| node.setAttribute("href", `${entry.url}`); |
| node.textContent = `${entry.name}`; |
| node.onclick = checkPageExistsAndRedirect; |
| $("#version_switcher").append(node); |
| }); |
| }); |
| })(); |
| </script> |
| </div> |
| |
| </div> |
| </div> |
| </div> |
| </nav> |
| |
| |
| <div class="container-xl"> |
| <div class="row"> |
| |
| |
| <!-- Only show if we have sidebars configured, else just a small margin --> |
| <div class="col-12 col-md-3 bd-sidebar"> |
| <div class="sidebar-start-items"><form class="bd-search d-flex align-items-center" action="../search.html" method="get"> |
| <i class="icon fas fa-search"></i> |
| <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" > |
| </form><nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation"> |
| <div class="bd-toc-item active"> |
| |
| </div> |
| </nav> |
| </div> |
| <div class="sidebar-end-items"> |
| </div> |
| </div> |
| |
| |
| |
| |
| <div class="d-none d-xl-block col-xl-2 bd-toc"> |
| |
| </div> |
| |
| |
| |
| |
| |
| |
| <main class="col-12 col-md-9 col-xl-7 py-md-5 pl-md-5 pr-md-4 bd-content" role="main"> |
| |
| <div> |
| |
| <h1>All modules for which code is available</h1> |
| <ul><li><a href="pyspark/accumulators.html">pyspark.accumulators</a></li> |
| <li><a href="pyspark/broadcast.html">pyspark.broadcast</a></li> |
| <li><a href="pyspark/conf.html">pyspark.conf</a></li> |
| <li><a href="pyspark/context.html">pyspark.context</a></li> |
| <li><a href="pyspark/errors/exceptions/base.html">pyspark.errors.exceptions.base</a></li> |
| <li><a href="pyspark/files.html">pyspark.files</a></li> |
| <li><a href="pyspark/ml/base.html">pyspark.ml.base</a></li> |
| <li><a href="pyspark/ml/classification.html">pyspark.ml.classification</a></li> |
| <li><a href="pyspark/ml/clustering.html">pyspark.ml.clustering</a></li> |
| <li><a href="pyspark/ml/deepspeed/deepspeed_distributor.html">pyspark.ml.deepspeed.deepspeed_distributor</a></li> |
| <li><a href="pyspark/ml/evaluation.html">pyspark.ml.evaluation</a></li> |
| <li><a href="pyspark/ml/feature.html">pyspark.ml.feature</a></li> |
| <li><a href="pyspark/ml/fpm.html">pyspark.ml.fpm</a></li> |
| <li><a href="pyspark/ml/functions.html">pyspark.ml.functions</a></li> |
| <li><a href="pyspark/ml/image.html">pyspark.ml.image</a></li> |
| <li><a href="pyspark/ml/linalg.html">pyspark.ml.linalg</a></li> |
| <li><a href="pyspark/ml/param.html">pyspark.ml.param</a></li> |
| <ul><li><a href="pyspark/ml/param/shared.html">pyspark.ml.param.shared</a></li> |
| </ul><li><a href="pyspark/ml/pipeline.html">pyspark.ml.pipeline</a></li> |
| <li><a href="pyspark/ml/recommendation.html">pyspark.ml.recommendation</a></li> |
| <li><a href="pyspark/ml/regression.html">pyspark.ml.regression</a></li> |
| <li><a href="pyspark/ml/stat.html">pyspark.ml.stat</a></li> |
| <li><a href="pyspark/ml/torch/distributor.html">pyspark.ml.torch.distributor</a></li> |
| <li><a href="pyspark/ml/tree.html">pyspark.ml.tree</a></li> |
| <li><a href="pyspark/ml/tuning.html">pyspark.ml.tuning</a></li> |
| <li><a href="pyspark/ml/util.html">pyspark.ml.util</a></li> |
| <li><a href="pyspark/ml/wrapper.html">pyspark.ml.wrapper</a></li> |
| <li><a href="pyspark/mllib/classification.html">pyspark.mllib.classification</a></li> |
| <li><a href="pyspark/mllib/clustering.html">pyspark.mllib.clustering</a></li> |
| <li><a href="pyspark/mllib/common.html">pyspark.mllib.common</a></li> |
| <li><a href="pyspark/mllib/evaluation.html">pyspark.mllib.evaluation</a></li> |
| <li><a href="pyspark/mllib/feature.html">pyspark.mllib.feature</a></li> |
| <li><a href="pyspark/mllib/fpm.html">pyspark.mllib.fpm</a></li> |
| <li><a href="pyspark/mllib/linalg.html">pyspark.mllib.linalg</a></li> |
| <ul><li><a href="pyspark/mllib/linalg/distributed.html">pyspark.mllib.linalg.distributed</a></li> |
| </ul><li><a href="pyspark/mllib/random.html">pyspark.mllib.random</a></li> |
| <li><a href="pyspark/mllib/recommendation.html">pyspark.mllib.recommendation</a></li> |
| <li><a href="pyspark/mllib/regression.html">pyspark.mllib.regression</a></li> |
| <li><a href="pyspark/mllib/stat/KernelDensity.html">pyspark.mllib.stat.KernelDensity</a></li> |
| <li><a href="pyspark/mllib/stat/_statistics.html">pyspark.mllib.stat._statistics</a></li> |
| <li><a href="pyspark/mllib/stat/distribution.html">pyspark.mllib.stat.distribution</a></li> |
| <li><a href="pyspark/mllib/stat/test.html">pyspark.mllib.stat.test</a></li> |
| <li><a href="pyspark/mllib/tree.html">pyspark.mllib.tree</a></li> |
| <li><a href="pyspark/mllib/util.html">pyspark.mllib.util</a></li> |
| <li><a href="pyspark/pandas/base.html">pyspark.pandas.base</a></li> |
| <li><a href="pyspark/pandas/config.html">pyspark.pandas.config</a></li> |
| <li><a href="pyspark/pandas/extensions.html">pyspark.pandas.extensions</a></li> |
| <li><a href="pyspark/pandas/frame.html">pyspark.pandas.frame</a></li> |
| <li><a href="pyspark/pandas/generic.html">pyspark.pandas.generic</a></li> |
| <li><a href="pyspark/pandas/groupby.html">pyspark.pandas.groupby</a></li> |
| <li><a href="pyspark/pandas/indexes/base.html">pyspark.pandas.indexes.base</a></li> |
| <li><a href="pyspark/pandas/indexes/category.html">pyspark.pandas.indexes.category</a></li> |
| <li><a href="pyspark/pandas/indexes/datetimes.html">pyspark.pandas.indexes.datetimes</a></li> |
| <li><a href="pyspark/pandas/indexes/multi.html">pyspark.pandas.indexes.multi</a></li> |
| <li><a href="pyspark/pandas/indexes/numeric.html">pyspark.pandas.indexes.numeric</a></li> |
| <li><a href="pyspark/pandas/indexes/timedelta.html">pyspark.pandas.indexes.timedelta</a></li> |
| <li><a href="pyspark/pandas/mlflow.html">pyspark.pandas.mlflow</a></li> |
| <li><a href="pyspark/pandas/namespace.html">pyspark.pandas.namespace</a></li> |
| <li><a href="pyspark/pandas/resample.html">pyspark.pandas.resample</a></li> |
| <li><a href="pyspark/pandas/series.html">pyspark.pandas.series</a></li> |
| <li><a href="pyspark/pandas/sql_formatter.html">pyspark.pandas.sql_formatter</a></li> |
| <li><a href="pyspark/pandas/window.html">pyspark.pandas.window</a></li> |
| <li><a href="pyspark/rdd.html">pyspark.rdd</a></li> |
| <li><a href="pyspark/resource/information.html">pyspark.resource.information</a></li> |
| <li><a href="pyspark/resource/profile.html">pyspark.resource.profile</a></li> |
| <li><a href="pyspark/resource/requests.html">pyspark.resource.requests</a></li> |
| <li><a href="pyspark/sql/avro/functions.html">pyspark.sql.avro.functions</a></li> |
| <li><a href="pyspark/sql/catalog.html">pyspark.sql.catalog</a></li> |
| <li><a href="pyspark/sql/column.html">pyspark.sql.column</a></li> |
| <li><a href="pyspark/sql/conf.html">pyspark.sql.conf</a></li> |
| <li><a href="pyspark/sql/dataframe.html">pyspark.sql.dataframe</a></li> |
| <li><a href="pyspark/sql/functions.html">pyspark.sql.functions</a></li> |
| <li><a href="pyspark/sql/group.html">pyspark.sql.group</a></li> |
| <li><a href="pyspark/sql/observation.html">pyspark.sql.observation</a></li> |
| <li><a href="pyspark/sql/pandas/conversion.html">pyspark.sql.pandas.conversion</a></li> |
| <li><a href="pyspark/sql/pandas/functions.html">pyspark.sql.pandas.functions</a></li> |
| <li><a href="pyspark/sql/pandas/group_ops.html">pyspark.sql.pandas.group_ops</a></li> |
| <li><a href="pyspark/sql/pandas/map_ops.html">pyspark.sql.pandas.map_ops</a></li> |
| <li><a href="pyspark/sql/protobuf/functions.html">pyspark.sql.protobuf.functions</a></li> |
| <li><a href="pyspark/sql/readwriter.html">pyspark.sql.readwriter</a></li> |
| <li><a href="pyspark/sql/session.html">pyspark.sql.session</a></li> |
| <li><a href="pyspark/sql/streaming/listener.html">pyspark.sql.streaming.listener</a></li> |
| <li><a href="pyspark/sql/streaming/query.html">pyspark.sql.streaming.query</a></li> |
| <li><a href="pyspark/sql/streaming/readwriter.html">pyspark.sql.streaming.readwriter</a></li> |
| <li><a href="pyspark/sql/types.html">pyspark.sql.types</a></li> |
| <li><a href="pyspark/sql/udf.html">pyspark.sql.udf</a></li> |
| <li><a href="pyspark/sql/udtf.html">pyspark.sql.udtf</a></li> |
| <li><a href="pyspark/sql/window.html">pyspark.sql.window</a></li> |
| <li><a href="pyspark/storagelevel.html">pyspark.storagelevel</a></li> |
| <li><a href="pyspark/streaming/context.html">pyspark.streaming.context</a></li> |
| <li><a href="pyspark/streaming/dstream.html">pyspark.streaming.dstream</a></li> |
| <li><a href="pyspark/streaming/kinesis.html">pyspark.streaming.kinesis</a></li> |
| <li><a href="pyspark/taskcontext.html">pyspark.taskcontext</a></li> |
| <li><a href="pyspark/testing/pandasutils.html">pyspark.testing.pandasutils</a></li> |
| <li><a href="pyspark/testing/utils.html">pyspark.testing.utils</a></li> |
| <li><a href="pyspark/util.html">pyspark.util</a></li> |
| </ul> |
| |
| </div> |
| |
| |
| <!-- Previous / next buttons --> |
| <div class='prev-next-area'> |
| </div> |
| |
| </main> |
| |
| |
| </div> |
| </div> |
| |
| <script src="../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf"></script> |
| <footer class="footer mt-5 mt-md-0"> |
| <div class="container"> |
| |
| <div class="footer-item"> |
| <p class="copyright"> |
| © Copyright .<br> |
| </p> |
| </div> |
| |
| <div class="footer-item"> |
| <p class="sphinx-version"> |
| Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.0.4.<br> |
| </p> |
| </div> |
| |
| </div> |
| </footer> |
| </body> |
| </html> |