From 53c5c9f098da84e3032b5445a34a606f698756ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 19 Apr 2024 17:47:44 +0200 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 0f5becd..83e691d 100644 --- a/README.md +++ b/README.md @@ -3185,7 +3185,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/interplt() # Or: .agg/transform(lambda : ) + = .rank/diff/cumsum/ffill/interpo…() # Or: .agg/transform(lambda : ) = .fillna() # Or: .agg/transform/map(lambda : ) ``` @@ -3304,7 +3304,7 @@ c 6 7 #### DataFrame — Aggregate, Transform, Map: ```python = .sum/max/mean/idxmax/all() # Or: .apply/agg(lambda : ) - = .rank/diff/cumsum/ffill/interplt() # Or: .apply/agg/transfrm(lambda : ) + = .rank/diff/cumsum/ffill/interpo…() # Or: .apply/agg/transfo…(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 13067d7..cc374a3 100644 --- a/index.html +++ b/index.html @@ -2606,7 +2606,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/interplt()  # Or: <Sr>.agg/transform(lambda <Sr>: <Sr>)
+<Sr> = <Sr>.rank/diff/cumsum/ffill/interpo…()  # Or: <Sr>.agg/transform(lambda <Sr>: <Sr>)
 <Sr> = <Sr>.fillna(<el>)                       # Or: <Sr>.agg/transform/map(lambda <el>: <el>)
 
@@ -2703,7 +2703,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/interplt()  # Or: <DF>.apply/agg/transfrm(lambda <Sr>: <Sr>)
+<DF> = <DF>.rank/diff/cumsum/ffill/interpo…()  # Or: <DF>.apply/agg/transfo…(lambda <Sr>: <Sr>)
 <DF> = <DF>.fillna(<el>)                       # Or: <DF>.applymap(lambda <el>: <el>)