Skip to content

Commit

Permalink
Use numeric_only=True in DataFrame.corr() and cov() (#393)
Browse files Browse the repository at this point in the history
* Add numeric_only=True to DataFrame.cov() and .corr()

* Update notebooks
  • Loading branch information
raphaelvallat authored Nov 13, 2023
1 parent b8231f5 commit fdb3c60
Show file tree
Hide file tree
Showing 12 changed files with 357 additions and 94 deletions.
24 changes: 20 additions & 4 deletions notebooks/00_QuickStart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,14 @@
"execution_count": 11,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/raphael/GitHub/pingouin/pingouin/correlation.py:1116: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.\n",
" mat_upper = mat_upper.applymap(replace_pval)\n"
]
},
{
"data": {
"text/html": [
Expand Down Expand Up @@ -1017,6 +1025,14 @@
"execution_count": 12,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/raphael/GitHub/pingouin/pingouin/pairwise.py:763: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.\n",
" mat_upper = mat_upper.applymap(lambda x: ffp(x, precision=decimals))\n"
]
},
{
"data": {
"text/html": [
Expand Down Expand Up @@ -1314,7 +1330,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 15,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1357,7 +1373,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 16,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1386,7 +1402,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 17,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1494,7 +1510,7 @@
"5 neyman -2.000 27.458 1.0 1.605e-07 0.301 0.999"
]
},
"execution_count": 18,
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
114 changes: 65 additions & 49 deletions notebooks/01_ANOVA.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions notebooks/02_BayesianTTests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -229,7 +229,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3"
"version": "3.9.6"
}
},
"nbformat": 4,
Expand Down
9 changes: 1 addition & 8 deletions notebooks/03_EffectSizes.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit fdb3c60

Please sign in to comment.