From e1cb5e7ef0c09b5ce40c46f24432f9ebf031a6c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 7 Jan 2024 16:10:45 +0100 Subject: [PATCH] Pandas --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1c0737c..f9d3e0b 100644 --- a/README.md +++ b/README.md @@ -3182,7 +3182,7 @@ plt.show() # Displays the plot. Also plt.sav #### Series — Aggregate, Transform, Map: ```python = .sum/max/mean/idxmax/all() # Or: .agg(lambda : ) - = .rank/diff/cumsum/ffill/interpl() # Or: .agg/transform(lambda : ) + = .rank/diff/cumsum/ffill/interplt() # Or: .agg/transform(lambda : ) = .fillna() # Or: .agg/transform/map(lambda : ) ``` @@ -3301,7 +3301,7 @@ c 6 7 #### DataFrame — Aggregate, Transform, Map: ```python = .sum/max/mean/idxmax/all() # Or: .apply/agg(lambda : ) - = .rank/diff/cumsum/ffill/interpl() # Or: .apply/agg/transfrm(lambda : ) + = .rank/diff/cumsum/ffill/interplt() # Or: .apply/agg/transfrm(lambda : ) = .fillna() # Or: .applymap(lambda : ) ``` * **All operations operate on columns by default. Pass `'axis=1'` to process the rows instead.** diff --git a/index.html b/index.html index 8c3eebe..aa1f96e 100644 --- a/index.html +++ b/index.html @@ -2607,7 +2607,7 @@ Name: a, dtype: int64 plt.show() # Displays the plot. Also plt.savefig(<path>).

Series — Aggregate, Transform, Map:

<el> = <Sr>.sum/max/mean/idxmax/all()          # Or: <Sr>.agg(lambda <Sr>: <el>)
-<Sr> = <Sr>.rank/diff/cumsum/ffill/interpl()   # Or: <Sr>.agg/transform(lambda <Sr>: <Sr>)
+<Sr> = <Sr>.rank/diff/cumsum/ffill/interplt()  # Or: <Sr>.agg/transform(lambda <Sr>: <Sr>)
 <Sr> = <Sr>.fillna(<el>)                       # Or: <Sr>.agg/transform/map(lambda <el>: <el>)
 
@@ -2704,7 +2704,7 @@ c 6 7 ┗━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━┛

DataFrame — Aggregate, Transform, Map:

<Sr> = <DF>.sum/max/mean/idxmax/all()          # Or: <DF>.apply/agg(lambda <Sr>: <el>)
-<DF> = <DF>.rank/diff/cumsum/ffill/interpl()   # Or: <DF>.apply/agg/transfrm(lambda <Sr>: <Sr>)
+<DF> = <DF>.rank/diff/cumsum/ffill/interplt()  # Or: <DF>.apply/agg/transfrm(lambda <Sr>: <Sr>)
 <DF> = <DF>.fillna(<el>)                       # Or: <DF>.applymap(lambda <el>: <el>)