| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -612,8 +612,11 @@ def sim_join( | |||
| 612 | 612 | >>> df1 = bpd.DataFrame({'animal': ['monkey', 'spider']}) | |
| 613 | 613 | >>> df2 = bpd.DataFrame({'animal': ['scorpion', 'baboon']}) | |
| 614 | 614 | ||
| 615 | - >>> df1.ai.sim_join(df2, left_on='animal', right_on='animal', model=model, top_k=1) | ||
| 616 | - animal animal_1 | ||
| 615 | + >>> res = df1.ai.sim_join(df2, left_on='animal', right_on='animal', model=model, top_k=1) | ||
| 616 | + >>> print("---"); print(res) # doctest: +ELLIPSIS | ||
| 617 | + --- | ||
| 618 | + ... | ||
| 619 | + animal animal_1 | ||
| 617 | 620 | 0 monkey baboon | |
| 618 | 621 | 1 spider scorpion | |
| 619 | 622 | <BLANKLINE> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -664,9 +664,11 @@ def read_gbq_query( | |||
| 664 | 664 | ... WHERE year = 2016 | |
| 665 | 665 | ... GROUP BY pitcherFirstName, pitcherLastName | |
| 666 | 666 | ... ''', index_col="rowindex") | |
| 667 | - >>> df.head(2) | ||
| 667 | + >>> print("START_OF_OUTPUT"); df.head(2) # doctest: +ELLIPSIS,+NORMALIZE_WHITESPACE | ||
| 668 | + START_OF_OUTPUT | ||
| 669 | + ... | ||
| 668 | 670 | pitcherFirstName pitcherLastName averagePitchSpeed | |
| 669 | - rowindex | ||
| 671 | + ... | ||
| 670 | 672 | 1 Albertin Chapman 96.514113 | |
| 671 | 673 | 2 Zachary Britton 94.591039 | |
| 672 | 674 | <BLANKLINE> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -86,9 +86,11 @@ def read_gbq( | |||
| 86 | 86 | ... WHERE year = 2016 | |
| 87 | 87 | ... GROUP BY pitcherFirstName, pitcherLastName | |
| 88 | 88 | ... ''', index_col="rowindex") | |
| 89 | - >>> df.head(2) | ||
| 89 | + >>> print("START_OF_OUTPUT"); df.head(2) # doctest: +ELLIPSIS,+NORMALIZE_WHITESPACE | ||
| 90 | + START_OF_OUTPUT | ||
| 91 | + ... | ||
| 90 | 92 | pitcherFirstName pitcherLastName averagePitchSpeed | |
| 91 | - rowindex | ||
| 93 | + ... | ||
| 92 | 94 | 1 Albertin Chapman 96.514113 | |
| 93 | 95 | 2 Zachary Britton 94.591039 | |
| 94 | 96 | <BLANKLINE> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments