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

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


The following commit(s) were added to refs/heads/master by this push:
     new d14578812d2a [SPARK-46135][PYTHON][DOCS] Fix table format error in 
ipynb docs
d14578812d2a is described below

commit d14578812d2a6cee88a9d6cad350edc55c36c62f
Author: panbingkun <pbk1...@gmail.com>
AuthorDate: Fri Dec 1 09:42:50 2023 +0900

    [SPARK-46135][PYTHON][DOCS] Fix table format error in ipynb docs
    
    ### What changes were proposed in this pull request?
    
    1.After pr https://github.com/apache/spark/pull/44012, the output format of 
some 'ipynb' tables displayed in HTML format has been disrupted. The pr aims to 
fix table format error in ipynb docs.
    
    - Before:
       <img width="792" alt="image" 
src="https://github.com/apache/spark/assets/15246973/2095a2ac-f0b5-44bd-a3c2-ce742d041243";>
    
    - After:
       <img width="739" alt="image" 
src="https://github.com/apache/spark/assets/15246973/ec0be72d-4dc0-44f4-ab75-d9668e32fc51";>
    
    2.Fix some minor errors.
    ### Why are the changes needed?
    Fix bug.
    
    ### Does this PR introduce _any_ user-facing change?
    Yes, only for docs.
    
    ### How was this patch tested?
    Manually test.
    Pass GA.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    No.
    
    Closes #44049 from panbingkun/SPARK-46135.
    
    Authored-by: panbingkun <pbk1...@gmail.com>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 .../getting_started/quickstart_connect.ipynb       |  2 +-
 .../source/getting_started/quickstart_df.ipynb     |  4 +--
 .../source/getting_started/quickstart_ps.ipynb     | 40 ++++++++++++----------
 3 files changed, 25 insertions(+), 21 deletions(-)

diff --git a/python/docs/source/getting_started/quickstart_connect.ipynb 
b/python/docs/source/getting_started/quickstart_connect.ipynb
index 15a2ab749d2a..1d994bde907f 100644
--- a/python/docs/source/getting_started/quickstart_connect.ipynb
+++ b/python/docs/source/getting_started/quickstart_connect.ipynb
@@ -28,7 +28,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "!$HOME/sbin/start-connect-server.sh --packages 
org.apache.spark:spark-connect_2.12:$SPARK_VERSION"
+    "!$HOME/sbin/start-connect-server.sh --packages 
org.apache.spark:spark-connect_2.13:$SPARK_VERSION"
    ]
   },
   {
diff --git a/python/docs/source/getting_started/quickstart_df.ipynb 
b/python/docs/source/getting_started/quickstart_df.ipynb
index f1c04c8bf118..5590ed5cc041 100644
--- a/python/docs/source/getting_started/quickstart_df.ipynb
+++ b/python/docs/source/getting_started/quickstart_df.ipynb
@@ -220,7 +220,7 @@
     {
      "data": {
       "text/html": [
-       "<table border='1'>\n",
+       "<table border='1' style=\"table-layout: auto;margin-right: 
auto;margin-left: 0;\">\n",
        "<tr><th>a</th><th>b</th><th>c</th><th>d</th><th>e</th></tr>\n",
        
"<tr><td>1</td><td>2.0</td><td>string1</td><td>2000-01-01</td><td>2000-01-01 
12:00:00</td></tr>\n",
        
"<tr><td>2</td><td>3.0</td><td>string2</td><td>2000-02-01</td><td>2000-01-02 
12:00:00</td></tr>\n",
@@ -440,7 +440,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
diff --git a/python/docs/source/getting_started/quickstart_ps.ipynb 
b/python/docs/source/getting_started/quickstart_ps.ipynb
index 02884a00859d..2b6b3f8142c7 100644
--- a/python/docs/source/getting_started/quickstart_ps.ipynb
+++ b/python/docs/source/getting_started/quickstart_ps.ipynb
@@ -115,7 +115,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -253,7 +253,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -396,7 +396,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -564,7 +564,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -702,7 +702,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -871,7 +871,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -992,7 +992,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -1091,7 +1091,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -1196,7 +1196,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -1329,7 +1329,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -1423,7 +1423,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -1499,7 +1499,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -1719,7 +1719,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -1840,10 +1840,11 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
+       "      <th>B</th>\n",
        "      <th>C</th>\n",
        "      <th>D</th>\n",
        "    </tr>\n",
@@ -1851,16 +1852,19 @@
        "      <th>A</th>\n",
        "      <th></th>\n",
        "      <th></th>\n",
+       "      <th></th>\n",
        "    </tr>\n",
        "  </thead>\n",
        "  <tbody>\n",
        "    <tr>\n",
        "      <th>bar</th>\n",
+       "      <td>onethreetwo</td>\n",
        "      <td>1.200513</td>\n",
        "      <td>0.769627</td>\n",
        "    </tr>\n",
        "    <tr>\n",
        "      <th>foo</th>\n",
+       "      <td>onetwotwoonethree</td>\n",
        "      <td>-2.553589</td>\n",
        "      <td>-1.361828</td>\n",
        "    </tr>\n",
@@ -1913,7 +1917,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -14068,7 +14072,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -14208,7 +14212,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",
@@ -14348,7 +14352,7 @@
        "        text-align: right;\n",
        "    }\n",
        "</style>\n",
-       "<table border=\"1\" class=\"dataframe\">\n",
+       "<table border=\"1\" class=\"dataframe\" style=\"table-layout: 
auto;margin-right: auto;margin-left: 0;\">\n",
        "  <thead>\n",
        "    <tr style=\"text-align: right;\">\n",
        "      <th></th>\n",


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

Reply via email to