You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2022/05/11 00:13:46 UTC
[spark] branch branch-3.3 updated: [MINOR][DOCS][PYTHON] Fixes pandas import statement in code example
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 <sa...@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 <sa...@gmail.com>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
(cherry picked from commit 60edc5758e82e76a37ce5a5f98e870fac587b656)
Signed-off-by: Hyukjin Kwon <gu...@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org