This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 1738f48e31b [MINOR][DOCS][PYTHON] Fixes pandas import statement in 
code example
1738f48e31b is described below

commit 1738f48e31b00141d013051df5f8a4e179dc0bcb
Author: Sachin Tripathi <sachintripathi...@gmail.com>
AuthorDate: Wed May 11 09:13:16 2022 +0900

    [MINOR][DOCS][PYTHON] Fixes pandas import statement in code example
    
    ### What changes were proposed in this pull request?
    In 'Applying a Function' section, example code import statement  `as pd` 
was added
    
    ### Why are the changes needed?
    In 'Applying a Function' section, example code import statement needs to 
have a `as pd` because in function definitions we're using `pd`.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    Documentation change only. Continues to be markdown compliant.
    
    Closes #36502 from snifhex/patch-1.
    
    Authored-by: Sachin Tripathi <sachintripathi...@gmail.com>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
    (cherry picked from commit 60edc5758e82e76a37ce5a5f98e870fac587b656)
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 python/docs/source/getting_started/quickstart_df.ipynb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/docs/source/getting_started/quickstart_df.ipynb 
b/python/docs/source/getting_started/quickstart_df.ipynb
index edfc730fb24..8c237a30a09 100644
--- a/python/docs/source/getting_started/quickstart_df.ipynb
+++ b/python/docs/source/getting_started/quickstart_df.ipynb
@@ -709,7 +709,7 @@
     }
    ],
    "source": [
-    "import pandas\n",
+    "import pandas as pd\n",
     "from pyspark.sql.functions import pandas_udf\n",
     "\n",
     "@pandas_udf('long')\n",


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to