Skip to content

Commit d56ee90

Browse files
committed
links
1 parent 9ea0ce1 commit d56ee90

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Examples/xicor/xicor.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@
539539
{
540540
"cell_type": "markdown",
541541
"source": [
542-
"And this is an example of a non-trivial statistical calculation being ported to the database."
542+
"And this is an example of a non-trivial statistical calculation being ported to the database. For a more complete (ready to run on frames) interface, please see [here](https://github.com/WinVector/data_algebra/blob/main/Examples/xicor/xicor_frame.ipynb)."
543543
],
544544
"metadata": {
545545
"collapsed": false,

Examples/xicor/xicor_frame.ipynb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@
99
}
1010
},
1111
"source": [
12-
"Professor Sourav Chatterjee's xicor coefficient of correlation (<a href=\"https://win-vector.com/2021/12/29/exploring-the-xi-correlation-coefficient/\">Nina Zumel's tutorial</a>, <a href=\"https://doi.org/10.1080/01621459.2020.1758115\">JASA</a>; original sources: <a href=\"https://CRAN.R-project.org/package=XICOR\">R package</a>, <a href=\"https://arxiv.org/abs/1909.10140\">Arxiv</a>, <a href=\"https://news.ycombinator.com/item?id=29687613\">Hacker News</a>, and <a href=\"https://github.com/czbiohub/xicor\">a Python package</a> (different author))."
12+
"Nice frame oriented interface to xicor in the database (refs: Professor Sourav Chatterjee's xicor coefficient of correlation (<a href=\"https://win-vector.com/2021/12/29/exploring-the-xi-correlation-coefficient/\">Nina Zumel's tutorial</a>, <a href=\"https://doi.org/10.1080/01621459.2020.1758115\">JASA</a>; original sources: <a href=\"https://CRAN.R-project.org/package=XICOR\">R package</a>, <a href=\"https://arxiv.org/abs/1909.10140\">Arxiv</a>, <a href=\"https://news.ycombinator.com/item?id=29687613\">Hacker News</a>, and <a href=\"https://github.com/czbiohub/xicor\">a Python package</a> (different author).)\n",
13+
"\n",
14+
"For some more notes please see [here](https://github.com/WinVector/data_algebra/blob/main/Examples/xicor/xicor.ipynb)."
1315
]
1416
},
1517
{
1618
"cell_type": "code",
1719
"execution_count": 1,
1820
"outputs": [],
1921
"source": [
20-
"from typing import Iterable\n",
21-
"import numpy as np\n",
22+
"\n",
2223
"import pandas as pd\n",
23-
"from data_algebra.data_ops import descr, TableDescription, ViewRepresentation\n",
24+
"from data_algebra.data_ops import descr\n",
2425
"import data_algebra.solutions\n",
2526
"import data_algebra.BigQuery\n"
2627
],
@@ -37,8 +38,8 @@
3738
"outputs": [
3839
{
3940
"data": {
40-
"text/plain": " variable_name xicor_mean xicor_std\n0 x1 0.25 0.000000\n1 x2 0.07 0.191213",
41-
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>variable_name</th>\n <th>xicor_mean</th>\n <th>xicor_std</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>x1</td>\n <td>0.25</td>\n <td>0.000000</td>\n </tr>\n <tr>\n <th>1</th>\n <td>x2</td>\n <td>0.07</td>\n <td>0.191213</td>\n </tr>\n </tbody>\n</table>\n</div>"
41+
"text/plain": " variable_name xicor_mean xicor_std\n0 x1 0.25 0.000000\n1 x2 0.13 0.178536",
42+
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>variable_name</th>\n <th>xicor_mean</th>\n <th>xicor_std</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>x1</td>\n <td>0.25</td>\n <td>0.000000</td>\n </tr>\n <tr>\n <th>1</th>\n <td>x2</td>\n <td>0.13</td>\n <td>0.178536</td>\n </tr>\n </tbody>\n</table>\n</div>"
4243
},
4344
"execution_count": 2,
4445
"metadata": {},
@@ -109,8 +110,8 @@
109110
"outputs": [
110111
{
111112
"data": {
112-
"text/plain": " xicor_mean xicor_std variable_name\n0 0.250 0.000000 x1\n1 0.055 0.191213 x2",
113-
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>xicor_mean</th>\n <th>xicor_std</th>\n <th>variable_name</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>0.250</td>\n <td>0.000000</td>\n <td>x1</td>\n </tr>\n <tr>\n <th>1</th>\n <td>0.055</td>\n <td>0.191213</td>\n <td>x2</td>\n </tr>\n </tbody>\n</table>\n</div>"
113+
"text/plain": " xicor_mean xicor_std variable_name\n0 0.25 0.000000 x1\n1 0.07 0.191213 x2",
114+
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>xicor_mean</th>\n <th>xicor_std</th>\n <th>variable_name</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>0.25</td>\n <td>0.000000</td>\n <td>x1</td>\n </tr>\n <tr>\n <th>1</th>\n <td>0.07</td>\n <td>0.191213</td>\n <td>x2</td>\n </tr>\n </tbody>\n</table>\n</div>"
114115
},
115116
"execution_count": 5,
116117
"metadata": {},

0 commit comments

Comments
 (0)