Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 412bcc0

Browse files
committed
Pandas
1 parent 3ea47fa commit 412bcc0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3209,8 +3209,8 @@ c 6 7
32093209
+------------------------+---------------+------------+------------+--------------------------+
32103210
| l.join(r, lsuffix='l', | x yl yr z | | x yl yr z | Joins/merges on row keys.|
32113211
| rsuffix='r', | a 1 2 . . | x yl yr z | 1 2 . . | Uses 'left' by default. |
3212-
| how=…) | b 3 4 4 5 | 3 4 4 5 | 3 4 4 5 | |
3213-
| | c . . 6 7 | | | |
3212+
| how=…) | b 3 4 4 5 | 3 4 4 5 | 3 4 4 5 | If 'r' is a series, it |
3213+
| | c . . 6 7 | | | is first converted to DF.|
32143214
+------------------------+---------------+------------+------------+--------------------------+
32153215
| pd.concat([l, r], | x y z | y | | Adds rows at the bottom. |
32163216
| axis=0, | a 1 2 . | 2 | | Uses 'outer' by default. |

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,8 +2733,8 @@
27332733
┠────────────────────────┼───────────────┼────────────┼────────────┼──────────────────────────┨
27342734
┃ l.join(r, lsuffix=<span class="hljs-string">'l'</span>, │ x yl yr z │ │ x yl yr z │ Joins/merges on row keys.┃
27352735
┃ rsuffix=<span class="hljs-string">'r'</span>, │ a <span class="hljs-number">1</span> <span class="hljs-number">2</span> . . │ x yl yr z │ <span class="hljs-number">1</span> <span class="hljs-number">2</span> . . │ Uses <span class="hljs-string">'left'</span> by default. ┃
2736-
┃ how=…) │ b <span class="hljs-number">3</span> <span class="hljs-number">4</span> <span class="hljs-number">4</span> <span class="hljs-number">5</span><span class="hljs-number">3</span> <span class="hljs-number">4</span> <span class="hljs-number">4</span> <span class="hljs-number">5</span><span class="hljs-number">3</span> <span class="hljs-number">4</span> <span class="hljs-number">4</span> <span class="hljs-number">5</span>
2737-
┃ │ c . . <span class="hljs-number">6</span> <span class="hljs-number">7</span> │ │ │
2736+
┃ how=…) │ b <span class="hljs-number">3</span> <span class="hljs-number">4</span> <span class="hljs-number">4</span> <span class="hljs-number">5</span><span class="hljs-number">3</span> <span class="hljs-number">4</span> <span class="hljs-number">4</span> <span class="hljs-number">5</span><span class="hljs-number">3</span> <span class="hljs-number">4</span> <span class="hljs-number">4</span> <span class="hljs-number">5</span>If <span class="hljs-string">'r'</span> is a series, it
2737+
┃ │ c . . <span class="hljs-number">6</span> <span class="hljs-number">7</span> │ │ │ is first converted to DF.
27382738
┠────────────────────────┼───────────────┼────────────┼────────────┼──────────────────────────┨
27392739
┃ pd.concat([l, r], │ x y z │ y │ │ Adds rows at the bottom. ┃
27402740
┃ axis=<span class="hljs-number">0</span>, │ a <span class="hljs-number">1</span> <span class="hljs-number">2</span> . │ <span class="hljs-number">2</span> │ │ Uses <span class="hljs-string">'outer'</span> by default. ┃

parse.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ const DIAGRAM_15_B =
320320
"┠────────────────────────┼───────────────┼────────────┼────────────┼──────────────────────────┨\n" +
321321
"┃ l.join(r, lsuffix='l', │ x yl yr z │ │ x yl yr z │ Joins/merges on row keys.┃\n" +
322322
"┃ rsuffix='r', │ a 1 2 . . │ x yl yr z │ 1 2 . . │ Uses 'left' by default. ┃\n" +
323-
"┃ how=…) │ b 3 4 4 5 │ 3 4 4 5 │ 3 4 4 5 │ ┃\n" +
324-
"┃ │ c . . 6 7 │ │ │ ┃\n" +
323+
"┃ how=…) │ b 3 4 4 5 │ 3 4 4 5 │ 3 4 4 5 │ If 'r' is a series, it ┃\n" +
324+
"┃ │ c . . 6 7 │ │ │ is first converted to DF.┃\n" +
325325
"┠────────────────────────┼───────────────┼────────────┼────────────┼──────────────────────────┨\n" +
326326
"┃ pd.concat([l, r], │ x y z │ y │ │ Adds rows at the bottom. ┃\n" +
327327
"┃ axis=0, │ a 1 2 . │ 2 │ │ Uses 'outer' by default. ┃\n" +
@@ -549,6 +549,7 @@ function fixPandasDiagram() {
549549
const diagram_15 = '┏━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━┓';
550550
$(`code:contains(${diagram_15})`).find(".hljs-keyword:contains(and)").after("and");
551551
$(`code:contains(${diagram_15})`).find(".hljs-keyword:contains(as)").after("as");
552+
$(`code:contains(${diagram_15})`).find(".hljs-keyword:contains(is)").after("is");
552553
$(`code:contains(${diagram_15})`).find(".hljs-keyword").remove();
553554
}
554555

0 commit comments

Comments
 (0)