import%20marimo%0A%0A__generated_with%20%3D%20%220.25.2%22%0Aapp%20%3D%20marimo.App(width%3D%22medium%22%2C%20app_title%3D%22Glossary%22)%0A%0Awith%20app.setup%3A%0A%20%20%20%20import%20marimo%20as%20mo%0A%0A%20%20%20%20S%2C%20A%2C%20F%2C%20M%20%3D%20%2200_start.py%22%2C%20%2210_arrays.py%22%2C%20%2220_dataframes.py%22%2C%20%2230_summarize_and_combine.py%22%0A%20%20%20%20C%2C%20L%2C%20V%20%3D%20%2240_cleaning_and_time.py%22%2C%20%2250_polars.py%22%2C%20%2260_charts_and_sharing.py%22%0A%20%20%20%20D1%2C%20D2%2C%20P1%2C%20P2%20%3D%20%2225_debugging_drill.py%22%2C%20%2245_debugging_drill.py%22%2C%20%2290_primer_marimo.py%22%2C%20%2291_primer_pandas_2_to_3.py%22%0A%20%20%20%20S1%2C%20S2%2C%20S3%20%3D%20%2281_stretch_dataframes.py%22%2C%20%2282_stretch_polars.py%22%2C%20%2283_stretch_charts.py%22%0A%0A%20%20%20%20%23%20One%20entry%20per%20term%3A%20what%20it%20means%2C%20a%20small%20example%2C%20and%20where%20you%20meet%20it.%0A%20%20%20%20%23%20%22where%22%20is%20a%20list%20of%20(notebook%2C%20how%20to%20find%20it%2C%20a%20heading%20in%20that%20notebook).%20The%20course's%20tests%20check%20every%20heading%20exists.%0A%20%20%20%20TERMS%20%3D%20%5B%0A%20%20%20%20%20%20%20%20%23%20The%20data%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22unit%20of%20observation%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22What%20one%20row%20stands%20for.%20In%20households.csv%20it%20is%20a%20household%3B%20in%20plots.csv%2C%20a%20plot.%22%2C%20%22example%22%3A%20%22one%20row%20%3D%20one%20plot%22%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20One%20row%20is%20one%20what%3F%20The%20unit%20of%20observation%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22codebook%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22The%20document%20that%20says%20what%20every%20column%20means%2C%20its%20codes%20and%20its%20unit.%20Read%20it%20before%20analyzing.%22%2C%20%22example%22%3A%20%22codebook.csv%22%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A72%22%2C%20%22%23%23%202%20%C2%B7%20The%20farm%20survey%20and%20its%20codebook%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22code%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22A%20number%20or%20text%20that%20stands%20for%20a%20category%2C%20not%20an%20amount%3A%20adding%20codes%20makes%20no%20sense.%22%2C%20%22example%22%3A%20%22head_sex%3A%201%20%3D%20Male%2C%202%20%3D%20Female%22%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Codes%3A%20numbers%20that%20are%20not%20amounts%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22not-stated%20code%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22A%20code%20that%20means%20the%20answer%20was%20not%20given%2C%20such%20as%209%20or%20999.%20It%20must%20become%20a%20missing%20value%20before%20any%20arithmetic.%22%2C%20%22example%22%3A%20%22head_age%20999%22%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Codes%3A%20numbers%20that%20are%20not%20amounts%22)%2C%20(C%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20Codes%20into%20missing%20values%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22PSGC%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22The%20Philippine%20Standard%20Geographic%20Code%3A%20PSA's%2010-digit%20codes%20for%20regions%2C%20provinces%2C%20cities%2C%20municipalities%20and%20barangays.%20A%20label%2C%20so%20kept%20as%20text%20with%20its%20leading%20zero.%22%2C%20%22example%22%3A%20'%220102801000%22%20(Adams%2C%20Ilocos%20Norte)'%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Codes%20that%20must%20stay%20text%3A%20the%20PSGC%22)%2C%20(F%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Codes%20are%20labels%2C%20not%20quantities%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22survey%20weight%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22How%20many%20households%20in%20the%20population%20one%20interviewed%20household%20stands%20for.%20Totals%20and%20means%20of%20the%20population%20use%20it.%22%2C%20%22example%22%3A%20%22weight%20279.77%22%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Weights%3A%20how%20many%20households%20one%20interview%20stands%20for%22)%2C%20(M%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20Survey%20weights%3A%20weighted%20means%2C%20totals%20and%20shares%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22weighted%20mean%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22A%20mean%20in%20which%20each%20value%20counts%20by%20its%20weight%3A%20the%20sum%20of%20weight%20%C3%97%20value%20divided%20by%20the%20sum%20of%20the%20weights.%22%2C%20%22example%22%3A%20%22(w%20*%20x).sum()%20%2F%20w.sum()%22%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A73%22%2C%20%22%23%23%23%20A%20weighted%20mean%20for%20each%20group%22)%2C%20(D2%2C%20%22D2.1%22%2C%20%22%23%23%23%20Drill%20D2.1%20%C2%B7%20A%20mean%20of%20means%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22weighted%20total%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22An%20estimate%20of%20a%20population%20total%3A%20the%20sum%20of%20weight%20%C3%97%20value.%22%2C%20%22example%22%3A%20%22(weight%20*%20area_ha).sum()%22%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20Survey%20weights%3A%20weighted%20means%2C%20totals%20and%20shares%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22yield%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22Harvest%20per%20unit%20of%20land%3A%20here%2C%20tonnes%20per%20hectare.%22%2C%20%22example%22%3A%20%22production_kg%20%2F%201000%20%2F%20area_ha%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20Vectorized%20arithmetic%20and%20broadcasting%22)%2C%20(F%2C%20%22%C2%A74%22%2C%20%22%23%23%23%20Why%20the%20unit%20matters%3A%20rice%20yields%2C%20two%20ways%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22hectare%20(ha)%20and%20square%20meter%20(sqm)%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22Units%20of%20area%3A%20one%20hectare%20is%2010%2C000%20square%20meters.%20A%20measure%20needs%20one%20unit%20before%20it%20is%20added%20up.%22%2C%20%22example%22%3A%20%222%2C500%20sqm%20%3D%200.25%20ha%22%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Units%3A%20the%20same%20measure%2C%20written%20two%20ways%22)%2C%20(C%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20One%20unit%20for%20a%20measure%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22tidy%20data%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22A%20table%20where%20each%20row%20is%20one%20observation%20and%20each%20column%20one%20variable.%20Most%20tools%20expect%20it.%22%2C%20%22example%22%3A%20%22one%20row%20per%20province%20and%20crop%22%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A74%22%2C%20%22%23%23%204%20%C2%B7%20Tidy%20data%3A%20pivot%2C%20melt%2C%20crosstab%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22long%20and%20wide%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22Two%20shapes%20of%20the%20same%20table%3A%20long%20has%20one%20row%20per%20value%20with%20a%20column%20saying%20what%20it%20is%3B%20wide%20spreads%20those%20values%20across%20columns.%22%2C%20%22example%22%3A%20%22pivot_table%20makes%20wide%3B%20melt%20makes%20long%22%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A74%22%2C%20%22%23%23%23%20Long%20to%20wide%3A%20%60pivot_table%60%22)%2C%20(M%2C%20%22%C2%A74%22%2C%20%22%23%23%23%20Wide%20to%20long%3A%20%60melt%60%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22time%20series%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22Values%20of%20one%20measure%20in%20time%20order%2C%20one%20per%20period%3A%20here%2C%20a%20commodity's%20monthly%20farmgate%20price.%22%2C%20%22example%22%3A%20%22palay%20prices%2C%20January%202022%20to%20December%202025%22%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A74%22%2C%20%22%23%23%204%20%C2%B7%20An%20introduction%20to%20time%20series%3A%20farmgate%20prices%20by%20month%2C%20a%20date%20index%2C%20resample%2C%20rolling%2C%20shift%20and%20growth%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22farmgate%20price%22%2C%20%22kind%22%3A%20%22Data%22%2C%20%22meaning%22%3A%20%22The%20price%20a%20farmer%20gets%20for%20a%20product%20at%20the%20farm%2C%20before%20transport%20and%20trade.%22%2C%20%22example%22%3A%20%22palay%2C%20pesos%20per%20kilogram%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A71%22%2C%20%22%23%23%23%23%20The%20farmgate%20prices%2C%20as%20a%20grid%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%23%20NumPy%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22array%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22Many%20values%20of%20one%20type%2C%20worked%20on%20all%20at%20once.%20A%20table's%20column%20is%20an%20array%20underneath.%22%2C%20%22example%22%3A%20%22np.array(%5B0.5%2C%201.2%2C%203.0%5D)%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A71%22%2C%20%22%23%23%201%20%C2%B7%20Creating%20arrays%3B%20dtype%20and%20shape%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22dtype%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22The%20one%20type%20every%20element%20of%20an%20array%20(or%20every%20value%20of%20a%20column)%20has%3A%20int64%2C%20float64%2C%20bool%2C%20str%E2%80%A6%22%2C%20%22example%22%3A%20%22areas.dtype%20is%20float64%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A71%22%2C%20%22%23%23%23%23%20dtype%3A%20one%20type%20for%20every%20element%22)%2C%20(F%2C%20%22%C2%A72%22%2C%20%22%23%23%202%20%C2%B7%20Reading%20and%20writing%20with%20the%20right%20types%3A%20codes%20as%20text%2C%20thousands%20separators%2C%20Excel%20header%20rows%20and%20sheets%2C%20CSV%2C%20Excel%2C%20Parquet%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22shape%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22How%20many%20elements%20an%20array%20has%20along%20each%20direction%2C%20as%20a%20tuple%3A%20(rows%2C%20columns).%22%2C%20%22example%22%3A%20%22prices.shape%20is%20(7%2C%2048)%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A71%22%2C%20%22%23%23%23%23%20shape%3A%20how%20many%2C%20in%20how%20many%20rows%20and%20columns%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22reshape%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22The%20same%20values%20arranged%20in%20another%20shape%2C%20such%20as%2048%20months%20as%204%20rows%20of%2012.%22%2C%20%22example%22%3A%20%22months.reshape(-1%2C%2012)%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A71%22%2C%20%22%23%23%23%23%20reshape%3A%20the%20same%20values%2C%20in%20rows%20and%20columns%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22axis%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22The%20direction%20a%20summary%20runs%20along%3A%20axis%3D0%20down%20the%20rows%20(one%20result%20per%20column)%2C%20axis%3D1%20across%20the%20columns%20(one%20per%20row).%22%2C%20%22example%22%3A%20%22grid.mean(axis%3D1)%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A74%22%2C%20%22%23%23%23%23%20axis%3A%20which%20direction%20to%20summarize%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22slice%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22A%20run%20of%20elements%20by%20position%2C%20from%20a%20start%20up%20to%20(not%20including)%20a%20stop%2C%20counting%20from%200.%22%2C%20%22example%22%3A%20%22grid%5B%3A%2C%200%3A12%5D%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A72%22%2C%20%22%23%23%23%23%20By%20position%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22boolean%20mask%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22An%20array%20of%20True%20and%20False%2C%20one%20per%20element%3B%20indexing%20with%20it%20keeps%20the%20True%20ones.%20Tables%20use%20the%20same%20idea%20to%20keep%20rows.%22%2C%20%22example%22%3A%20'yields%5Bcrop%20%3D%3D%20%22Rice%22%5D'%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A72%22%2C%20%22%23%23%23%23%20By%20condition%3A%20boolean%20masks%22)%2C%20(F%2C%20%22%C2%A73%22%2C%20%22%23%23%23%20Rows%20by%20condition%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22%26%2C%20%7C%20and%20~%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22And%2C%20or%20and%20not%2C%20element%20by%20element%2C%20for%20masks.%20Each%20condition%20goes%20in%20brackets%3B%20Python's%20and%2C%20or%2C%20not%20raise%20an%20error%20on%20arrays.%22%2C%20%22example%22%3A%20'(crop%20%3D%3D%20%22Rice%22)%20%26%20(irrigated%20%3D%3D%20%22Yes%22)'%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A72%22%2C%20%22%23%23%23%23%20Combining%20conditions%3A%20%26%2C%20%7C%20and%20~%22)%2C%20(D1%2C%20%22D1.2%22%2C%20%22%23%23%23%20Drill%20D1.2%20%C2%B7%20%60and%60%20for%20%60%26%60%2C%20and%20missing%20brackets%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22vectorized%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22Working%20on%20a%20whole%20array%20in%20one%20operation%20instead%20of%20a%20Python%20loop.%20The%20loop%20still%20happens%2C%20inside%20NumPy%2C%20much%20faster.%22%2C%20%22example%22%3A%20%22production%20%2F%201000%20%2F%20area_ha%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20Vectorized%20arithmetic%20and%20broadcasting%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22broadcasting%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22NumPy's%20rule%20for%20arithmetic%20between%20arrays%20of%20different%20shapes%3A%20line%20the%20shapes%20up%20from%20the%20right%3B%20each%20pair%20must%20be%20equal%20or%201.%22%2C%20%22example%22%3A%20%22grid%20(7%2C%2048)%20%2F%20first%20(7%2C%201)%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A73%22%2C%20%22%23%23%23%23%20Broadcasting%3A%20arrays%20of%20different%20shapes%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22np.where%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22One%20value%20where%20a%20condition%20is%20True%20and%20another%20where%20it%20is%20False%2C%20element%20by%20element%2C%20into%20a%20new%20array.%22%2C%20%22example%22%3A%20'np.where(unit%20%3D%3D%20%22sqm%22%2C%20area%20%2F%2010_000%2C%20area)'%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A73%22%2C%20%22%23%23%23%23%20np.where%3A%20one%20value%20or%20another%2C%20element%20by%20element%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22NaN%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22Not%20a%20Number%3A%20the%20missing%20value%20of%20decimal%20arrays%20and%20columns.%20Any%20comparison%20with%20it%20is%20False%2C%20so%20find%20it%20with%20isnan%20or%20isna.%22%2C%20%22example%22%3A%20%22np.nan%20%3D%3D%20np.nan%20is%20False%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A74%22%2C%20%22%23%23%23%23%20NaN%3A%20a%20missing%20number%22)%2C%20(D1%2C%20%22D1.3%22%2C%20%22%23%23%23%20Drill%20D1.3%20%C2%B7%20Comparing%20with%20NaN%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22nanmean%2C%20nansum%22%2C%20%22kind%22%3A%20%22NumPy%22%2C%20%22meaning%22%3A%20%22Summaries%20that%20skip%20NaN%20instead%20of%20giving%20NaN.%22%2C%20%22example%22%3A%20%22np.nanmean(grid%2C%20axis%3D0)%22%2C%20%22where%22%3A%20%5B(A%2C%20%22%C2%A74%22%2C%20%22%23%23%23%23%20NaN%3A%20a%20missing%20number%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%23%20pandas%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22DataFrame%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20table%3A%20named%20columns%2C%20each%20a%20Series%2C%20sharing%20one%20index.%22%2C%20%22example%22%3A%20%22households%22%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A71%22%2C%20%22%23%23%201%20%C2%B7%20Series%2C%20the%20index%20and%20alignment%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22Series%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22One%20column%20of%20values%20with%20an%20index%3A%20a%20label%20for%20each%20value.%22%2C%20%22example%22%3A%20'households%5B%22weight%22%5D'%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A71%22%2C%20%22%23%23%201%20%C2%B7%20Series%2C%20the%20index%20and%20alignment%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22index%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22The%20labels%20of%20a%20table's%20rows%20(or%20a%20Series'%20values).%20Arithmetic%20and%20assignment%20line%20values%20up%20by%20it.%22%2C%20%22example%22%3A%20'households.set_index(%22hh_id%22)'%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A71%22%2C%20%22%23%23%201%20%C2%B7%20Series%2C%20the%20index%20and%20alignment%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22alignment%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22pandas%20pairs%20values%20by%20index%20label%2C%20not%20by%20position%3B%20a%20label%20on%20one%20side%20only%20gives%20a%20missing%20value.%22%2C%20%22example%22%3A%20%22a%20%2B%20b%2C%20matched%20by%20hh_id%22%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20Alignment%3A%20arithmetic%20lines%20values%20up%20by%20label%22)%2C%20(D1%2C%20%22D1.6%22%2C%20%22%23%23%23%20Drill%20D1.6%20%C2%B7%20Rows%20that%20no%20longer%20line%20up%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22set_index%20%2F%20reset_index%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Move%20a%20column%20into%20the%20index%2C%20or%20the%20index%20back%20out%20into%20a%20column.%22%2C%20%22example%22%3A%20'plots.set_index(%22hh_id%22)'%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20Moving%20labels%20in%20and%20out%3A%20set_index%20and%20reset_index%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22str%20(the%20text%20dtype)%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22pandas%203's%20own%20type%20for%20text%20columns%2C%20which%20holds%20only%20text%20and%20missing%20values.%20pandas%202%20used%20object.%22%2C%20%22example%22%3A%20'households%5B%22psgc%22%5D.dtype%20is%20str'%2C%20%22where%22%3A%20%5B(P2%2C%20%22%C2%A72%22%2C%20%22%23%23%23%202.1%20%C2%B7%20Text%20columns%20are%20%60str%60%2C%20not%20%60object%60%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22thousands%20separator%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22The%20comma%20in%201%2C640.%20A%20file%20written%20with%20it%20reads%20as%20text%20unless%20read_csv%20is%20told%20thousands%3D%5C%22%2C%5C%22.%22%2C%20%22example%22%3A%20'pd.read_csv(path%2C%20thousands%3D%22%2C%22)'%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Numbers%20with%20thousands%20separators%22)%2C%20(D1%2C%20%22D1.5%22%2C%20%22%23%23%23%20Drill%20D1.5%20%C2%B7%20Numbers%20read%20as%20text%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22header%20row%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22The%20row%20that%20holds%20the%20column%20names.%20In%20a%20spreadsheet%20with%20title%20rows%20above%20it%2C%20read_excel%20needs%20header%3D%20to%20find%20it.%22%2C%20%22example%22%3A%20'pd.read_excel(path%2C%20sheet_name%3D%22Plots%22%2C%20header%3D3)'%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Excel%3A%20sheets%20and%20header%20rows%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22Parquet%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20file%20format%20for%20tables%20that%20keeps%20each%20column's%20type%2C%20unlike%20CSV%2C%20which%20keeps%20only%20text.%22%2C%20%22example%22%3A%20'table.to_parquet(%22plots.parquet%22)'%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Writing%3A%20CSV%2C%20Excel%20and%20Parquet%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22loc%20%2F%20iloc%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Select%20rows%20and%20columns%20by%20label%20(loc)%20or%20by%20position%20(iloc).%22%2C%20%22example%22%3A%20'plots.loc%5Bmask%2C%20%22area%22%5D'%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A73%22%2C%20%22%23%23%23%20loc%20and%20iloc%3A%20by%20label%2C%20by%20position%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22isin%20%2F%20between%20%2F%20query%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Shorter%20ways%20to%20write%20a%20condition%3A%20one%20of%20several%20values%2C%20within%20a%20range%2C%20or%20a%20condition%20written%20as%20text.%22%2C%20%22example%22%3A%20'plots%5B%22crop%22%5D.isin(%5B%22Rice%22%2C%20%22Corn%22%5D)'%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A73%22%2C%20%22%23%23%23%20Shorter%20conditions%3A%20isin%2C%20between%20and%20query%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22assign%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20new%20table%20with%20columns%20added%20or%20replaced%2C%20leaving%20the%20original%20as%20it%20was.%22%2C%20%22example%22%3A%20%22plots.assign(area_ha%3D...)%22%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A74%22%2C%20%22%23%23%23%20Adding%20columns%3A%20in%20place%2C%20or%20a%20new%20table%20with%20assign%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22where%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Keep%20a%20column's%20values%20where%20a%20condition%20is%20True%20and%20put%20another%20value%20elsewhere.%22%2C%20%22example%22%3A%20'area.where(unit%20%3D%3D%20%22ha%22%2C%20area%20%2F%2010_000)'%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A74%22%2C%20%22%23%23%23%20A%20new%20column%2C%20from%20a%20condition%3A%20where%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22copy-on-write%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22pandas%203's%20rule%3A%20a%20table%20you%20got%20from%20another%20behaves%20as%20its%20own%20copy%2C%20so%20changing%20it%20never%20changes%20the%20other.%20A%20table%20changes%20only%20through%20its%20own%20methods%20or%20loc.%22%2C%20%22example%22%3A%20%22rice%20%3D%20plots%5Bplots.crop%20%3D%3D%20'Rice'%5D%22%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A74%22%2C%20%22%23%23%23%20Copy-on-write%3A%20a%20table%20you%20got%20from%20another%20is%20its%20own%22)%2C%20(P2%2C%20%22%C2%A71%22%2C%20%22%23%23%201%20%C2%B7%20Copy-on-write%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22chained%20assignment%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Assigning%20through%20two%20selections%20in%20a%20row%2C%20df%5Bmask%5D%5B%5C%22col%5C%22%5D%20%3D%20%E2%80%A6.%20Under%20copy-on-write%20it%20never%20changes%20df%3B%20pandas%20warns%20with%20ChainedAssignmentError.%22%2C%20%22example%22%3A%20'df.loc%5Bmask%2C%20%22col%22%5D%20%3D%20value%20%20%23%20instead'%2C%20%22where%22%3A%20%5B(D1%2C%20%22D1.4%22%2C%20%22%23%23%23%20Drill%20D1.4%20%C2%B7%20An%20assignment%20that%20doesn't%20stick%22)%2C%20(P2%2C%20%22%C2%A71.1%22%2C%20%22%23%23%23%201.1%20%C2%B7%20Chained%20assignment%20never%20changes%20the%20table%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22groupby%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Split%20rows%20into%20groups%20by%20a%20key%2C%20compute%20inside%20each%2C%20and%20combine%3A%20one%20row%20per%20group.%22%2C%20%22example%22%3A%20'plots.groupby(%22crop%22)%5B%22area_ha%22%5D.sum()'%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A71%22%2C%20%22%23%23%201%20%C2%B7%20Group%20and%20aggregate%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22named%20aggregation%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22agg%20with%20a%20name%20for%20each%20result%2C%20written%20name%3D(column%2C%20function).%22%2C%20%22example%22%3A%20'agg(plots%3D(%22plot_no%22%2C%20%22size%22))'%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20Several%20results%20at%20once%3A%20named%20aggregations%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22size%20and%20count%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22size%20counts%20rows%20in%20each%20group%3B%20count%20counts%20the%20non-missing%20values%20of%20a%20column.%22%2C%20%22example%22%3A%20'groupby(%22crop%22).size()'%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20%60size%60%20and%20%60count%60%20are%20not%20the%20same%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22dropna%3DFalse%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Tells%20groupby%20to%20keep%20rows%20whose%20key%20is%20missing%2C%20as%20a%20group%20of%20their%20own%2C%20instead%20of%20leaving%20them%20out.%22%2C%20%22example%22%3A%20'groupby(%22crop%22%2C%20dropna%3DFalse)'%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20Missing%20keys%3A%20the%20rows%20%60groupby%60%20leaves%20out%22)%2C%20(D2%2C%20%22D2.3%22%2C%20%22%23%23%23%20Drill%20D2.3%20%C2%B7%20Plots%20that%20drop%20out%20of%20the%20totals%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22transform%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20group's%20result%20put%20back%20on%20every%20row%20of%20the%20group%2C%20so%20it%20lines%20up%20with%20the%20original%20table.%22%2C%20%22example%22%3A%20'groupby(%22province%22)%5B%22area_ha%22%5D.transform(%22sum%22)'%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A72%22%2C%20%22%23%23%202%20%C2%B7%20Within%20groups%3A%20transform%2C%20shares%2C%20ranks%2C%20running%20totals%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22rank%20%2F%20cumsum%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20value's%20place%20within%20its%20group%2C%20and%20a%20running%20total%20down%20the%20rows.%22%2C%20%22example%22%3A%20'groupby(%22province%22)%5B%22yield%22%5D.rank(ascending%3DFalse)'%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Ranks%20within%20a%20group%22)%2C%20(M%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Running%20totals%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22pivot_table%20%2F%20melt%20%2F%20crosstab%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Long%20to%20wide%20with%20a%20summary%20in%20each%20cell%3B%20wide%20back%20to%20long%3B%20a%20count%20(or%20share)%20for%20each%20pair%20of%20two%20columns'%20values.%22%2C%20%22example%22%3A%20'pd.crosstab(plots.crop%2C%20plots.irrigated)'%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A74%22%2C%20%22%23%23%204%20%C2%B7%20Tidy%20data%3A%20pivot%2C%20melt%2C%20crosstab%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22merge%20(join)%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Put%20two%20tables%20side%20by%20side%2C%20matching%20rows%20on%20a%20key.%22%2C%20%22example%22%3A%20'plots.merge(households%2C%20on%3D%22hh_id%22)'%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A75%22%2C%20%22%23%23%23%20%60merge%60%3A%20rows%20matched%20on%20a%20key%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22join%20types%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Which%20rows%20a%20join%20keeps%3A%20inner%20(matched%20on%20both%20sides)%2C%20left%20(every%20row%20of%20the%20left)%2C%20right%2C%20outer%20(every%20row%20of%20both).%20merge's%20how%3D%20chooses.%22%2C%20%22example%22%3A%20'how%3D%22left%22'%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A75%22%2C%20%22%23%23%23%20%60merge%60%3A%20rows%20matched%20on%20a%20key%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22validate%3D%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Tells%20merge%20what%20the%20key%20should%20be%20on%20each%20side%20(one_to_one%2C%20many_to_one%E2%80%A6)%2C%20so%20a%20key%20that%20repeats%20where%20it%20shouldn't%20raises%20a%20MergeError%20instead%20of%20multiplying%20rows.%22%2C%20%22example%22%3A%20'validate%3D%22many_to_one%22'%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A75%22%2C%20%22%23%23%23%20One-to-one%2C%20many-to-one%2C%20many-to-many%3A%20%60validate%3D%60%22)%2C%20(D2%2C%20%22D2.2%22%2C%20%22%23%23%23%20Drill%20D2.2%20%C2%B7%20A%20join%20that%20multiplies%20rows%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22indicator%3D%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Adds%20a%20_merge%20column%20saying%20whether%20each%20row%20matched%20on%20both%20sides%2C%20or%20came%20from%20one%20side%20only.%22%2C%20%22example%22%3A%20%22indicator%3DTrue%22%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A75%22%2C%20%22%23%23%23%20Keys%20that%20don't%20match%3A%20%60indicator%3DTrue%60%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22concat%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Stack%20tables%20with%20the%20same%20columns%20one%20under%20another.%22%2C%20%22example%22%3A%20%22pd.concat(%5Bjan%2C%20feb%5D%2C%20ignore_index%3DTrue)%22%2C%20%22where%22%3A%20%5B(M%2C%20%22%C2%A75%22%2C%20%22%23%23%23%20Stacking%20tables%3A%20%60concat%60%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22NA%20(pd.NA)%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22The%20missing%20value%20of%20pandas'%20nullable%20types%2C%20such%20as%20Int64.%20It%20keeps%20whole%20numbers%20whole.%22%2C%20%22example%22%3A%20%22pd.array(%5B1%2C%20None%5D%2C%20dtype%3D'Int64')%22%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A71%22%2C%20'%23%23%23%20Three%20ways%20to%20say%20%22missing%22')%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22isna%20%2F%20fillna%20%2F%20dropna%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Find%20missing%20values%2C%20fill%20them%20with%20something%2C%20or%20drop%20the%20rows%20that%20have%20them.%20Fill%20only%20when%20the%20value%20is%20truly%20known.%22%2C%20%22example%22%3A%20'plots%5B%22fertilizer_kg%22%5D.isna()'%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20Finding%20the%20missing%20values%22)%2C%20(C%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20When%20not%20to%20fill%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22nullable%20integer%20(Int64)%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20whole-number%20type%20that%20can%20hold%20a%20missing%20value%2C%20so%20a%20column%20of%20ages%20with%20a%20gap%20stays%20whole%20numbers.%22%2C%20%22example%22%3A%20'astype(%22Int64%22)'%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Nullable%20integers%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22category%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20type%20for%20a%20column%20with%20a%20fixed%20set%20of%20values%3A%20it%20saves%20memory%20and%20can%20carry%20an%20order.%22%2C%20%22example%22%3A%20'astype(%22category%22)'%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Category%3A%20a%20fixed%20set%20of%20values%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22.str%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Text%20methods%20for%20every%20value%20of%20a%20column%20at%20once.%22%2C%20%22example%22%3A%20'psgc.str%5B%3A5%5D'%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Text%20with%20.str%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22day-first%20date%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20date%20written%20day%2Fmonth%2Fyear%2C%20as%20in%20the%20survey.%20Read%20it%20with%20format%3D%5C%22%25d%2F%25m%2F%25Y%5C%22%3B%20read%20month-first%2C%20some%20dates%20fail%20and%20others%20swap%20day%20and%20month%20without%20a%20word.%22%2C%20%22example%22%3A%20'pd.to_datetime(s%2C%20format%3D%22%25d%2F%25m%2F%25Y%22)'%2C%20%22where%22%3A%20%5B(F%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Dates%20on%20the%20way%20in%3A%20day%20first%22)%2C%20(D2%2C%20%22D2.4%22%2C%20%22%23%23%23%20Drill%20D2.4%20%C2%B7%20Dates%20read%20month-first%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22period%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20span%20of%20time%20such%20as%20a%20month%2C%20rather%20than%20an%20instant%3A%202025-10%20is%20all%20of%20October.%22%2C%20%22example%22%3A%20'dates.dt.to_period(%22M%22)'%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A73%22%2C%20%22%23%23%23%20Parts%20of%20a%20date%2C%20and%20periods%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22timedelta%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20length%20of%20time%2C%20such%20as%2030%20days%2C%20rather%20than%20a%20date%3A%20what%20subtracting%20one%20date%20from%20another%20gives.%22%2C%20%22example%22%3A%20%22dates.max()%20-%20dates.min()%22%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A73%22%2C%20%22%23%23%23%20Parts%20of%20a%20date%2C%20and%20periods%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22date%20index%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22An%20index%20of%20dates%20or%20periods%2C%20which%20lets%20a%20series%20be%20selected%2C%20resampled%20and%20shifted%20in%20time.%22%2C%20%22example%22%3A%20%22series.index%20is%20a%20PeriodIndex%22%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A74%22%2C%20%22%23%23%23%20A%20date%20index%3A%20periods%20or%20timestamps%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22resample%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Group%20a%20time%20series%20into%20longer%20periods%2C%20such%20as%20months%20into%20quarters%2C%20and%20summarize%20each.%22%2C%20%22example%22%3A%20'series.resample(%22Q%22).mean()'%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A74%22%2C%20%22%23%23%23%20resample%3A%20from%20months%20to%20quarters%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22rolling%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20summary%20over%20a%20moving%20window%2C%20such%20as%20the%20mean%20of%20each%20month%20and%20the%20two%20before%20it.%22%2C%20%22example%22%3A%20%22series.rolling(3).mean()%22%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A74%22%2C%20%22%23%23%23%20rolling%3A%20a%20moving%20average%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22shift%20%2F%20growth%20rate%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22shift%20moves%20values%20down%20by%20some%20periods%2C%20to%20compare%20each%20with%20an%20earlier%20one%3B%20growth%20is%20the%20change%20in%20percent.%20A%20missing%20month%20must%20stay%20a%20gap%2C%20or%20the%20comparison%20uses%20the%20wrong%20month.%22%2C%20%22example%22%3A%20%22series.pct_change(12)%20*%20100%22%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A74%22%2C%20%22%23%23%23%20shift%20and%20growth%3A%20compare%20with%20the%20right%20month%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22duplicated%20%2F%20drop_duplicates%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Find%20rows%20that%20repeat%20an%20earlier%20one%2C%20or%20keep%20the%20first%20of%20each.%22%2C%20%22example%22%3A%20%22households.drop_duplicates()%22%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A75%22%2C%20%22%23%23%205%20%C2%B7%20Duplicates%2C%20and%20checks%20you%20can%20rerun%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22check%20you%20can%20rerun%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22A%20function%20that%20tests%20what%20must%20hold%20in%20the%20data%20(unique%20keys%2C%20codes%20in%20the%20code%20list)%20and%20returns%20the%20problems%2C%20run%20again%20on%20every%20new%20file.%22%2C%20%22example%22%3A%20'assert%20households%5B%22hh_id%22%5D.is_unique'%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A75%22%2C%20%22%23%23%23%20Checks%20you%20can%20rerun%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22NaT%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22Not%20a%20Time%3A%20the%20missing%20value%20of%20a%20date%20column.%20A%20date%20that%20cannot%20be%20read%20with%20errors%3D%5C%22coerce%5C%22%20becomes%20NaT.%22%2C%20%22example%22%3A%20'pd.to_datetime(%2213%2F31%2F2025%22%2C%20format%3D%22%25m%2F%25d%2F%25Y%22%2C%20errors%3D%22coerce%22)'%2C%20%22where%22%3A%20%5B(C%2C%20%22%C2%A71%22%2C%20'%23%23%23%20Three%20ways%20to%20say%20%22missing%22')%2C%20(D2%2C%20%22D2.4%22%2C%20%22%23%23%23%20Drill%20D2.4%20%C2%B7%20Dates%20read%20month-first%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22median%22%2C%20%22kind%22%3A%20%22pandas%22%2C%20%22meaning%22%3A%20%22The%20middle%20value%20once%20the%20values%20are%20sorted%3A%20half%20are%20below%20it%2C%20half%20above.%20A%20few%20very%20large%20or%20very%20small%20values%20move%20it%20far%20less%20than%20they%20move%20the%20mean.%22%2C%20%22example%22%3A%20'groupby(%22crop%22)%5B%22yield_t_ha%22%5D.transform(%22median%22)'%2C%20%22where%22%3A%20%5B(S1%2C%20%22S1.3%22%2C%20%22%23%23%20S1.3%20%C2%B7%20Each%20plot%20against%20its%20crop's%20typical%20yield%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%23%20polars%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22polars%22%2C%20%22kind%22%3A%20%22polars%22%2C%20%22meaning%22%3A%20%22A%20library%20for%20tables%20built%20on%20expressions%20and%20lazy%20queries%2C%20with%20no%20index.%22%2C%20%22example%22%3A%20%22import%20polars%20as%20pl%22%2C%20%22where%22%3A%20%5B(L%2C%20%22%C2%A71%22%2C%20%22%23%23%201%20%C2%B7%20The%20same%20tasks%20as%20expressions%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22expression%22%2C%20%22kind%22%3A%20%22polars%22%2C%20%22meaning%22%3A%20%22A%20description%20of%20a%20column%20to%20compute%2C%20such%20as%20pl.col(%5C%22area%5C%22)%20%2F%2010_000%2C%20run%20by%20a%20context%20like%20select%2C%20filter%20or%20with_columns.%22%2C%20%22example%22%3A%20'pl.col(%22area%22).sum()'%2C%20%22where%22%3A%20%5B(L%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20An%20expression%20describes%20a%20column%3B%20a%20context%20runs%20it%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22lazy%20query%22%2C%20%22kind%22%3A%20%22polars%22%2C%20%22meaning%22%3A%20%22A%20query%20described%20in%20full%20before%20anything%20runs%2C%20so%20polars%20can%20plan%20it%20(reading%20only%20the%20rows%20and%20columns%20it%20needs)%3B%20collect()%20runs%20it.%22%2C%20%22example%22%3A%20'pl.scan_csv(path).filter(...).collect()'%2C%20%22where%22%3A%20%5B(L%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20A%20lazy%20query%3A%20describe%20it%20all%2C%20then%20run%20it%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22LazyFrame%22%2C%20%22kind%22%3A%20%22polars%22%2C%20%22meaning%22%3A%20%22What%20a%20lazy%20query%20is%20while%20it%20is%20still%20a%20plan%3A%20scan_csv()%20and%20.lazy()%20give%20one%2C%20steps%20add%20to%20it%20without%20running%2C%20and%20collect()%20runs%20it%20into%20a%20DataFrame.%22%2C%20%22example%22%3A%20%22pl.scan_csv(path)%22%2C%20%22where%22%3A%20%5B(L%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20A%20lazy%20query%3A%20describe%20it%20all%2C%20then%20run%20it%22)%2C%20(S2%2C%20%22S2.1%22%2C%20%22%23%23%20S2.1%20%C2%B7%20Every%20price%20file%2C%20in%20one%20lazy%20query%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22to_pandas%20%2F%20from_pandas%22%2C%20%22kind%22%3A%20%22polars%22%2C%20%22meaning%22%3A%20%22Move%20a%20table%20from%20polars%20to%20pandas%2C%20or%20back.%22%2C%20%22example%22%3A%20%22pl.from_pandas(households)%22%2C%20%22where%22%3A%20%5B(L%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20Moving%20between%20pandas%20and%20polars%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22predicate%20pushdown%22%2C%20%22kind%22%3A%20%22polars%22%2C%20%22meaning%22%3A%20%22In%20a%20lazy%20query%2C%20polars%20moves%20a%20filter%20into%20the%20reading%20of%20the%20file%2C%20so%20rows%20that%20fail%20it%20are%20never%20loaded.%20explain()%20shows%20it.%22%2C%20%22example%22%3A%20'pl.scan_csv(path).filter(pl.col(%22crop%22)%20%3D%3D%20%22Rice%22).explain()'%2C%20%22where%22%3A%20%5B(L%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20A%20lazy%20query%3A%20describe%20it%20all%2C%20then%20run%20it%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22glob%20pattern%22%2C%20%22kind%22%3A%20%22polars%22%2C%20%22meaning%22%3A%20%22A%20file%20name%20with%20*%20standing%20for%20any%20characters%2C%20to%20match%20many%20files%20at%20once.%22%2C%20%22example%22%3A%20'pl.scan_csv(PATHS.prices%20%2F%20%22farmgate_2022-*.csv%22)'%2C%20%22where%22%3A%20%5B(L%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20A%20lazy%20query%3A%20describe%20it%20all%2C%20then%20run%20it%22)%2C%20(S2%2C%20%22S2.1%22%2C%20%22%23%23%20S2.1%20%C2%B7%20Every%20price%20file%2C%20in%20one%20lazy%20query%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22anti-join%22%2C%20%22kind%22%3A%20%22polars%22%2C%20%22meaning%22%3A%20%22A%20join%20that%20keeps%20the%20rows%20of%20the%20left%20table%20with%20no%20match%20on%20the%20right%3A%20what%20a%20join%20would%20lose.%22%2C%20%22example%22%3A%20'households.join(codes%2C%20on%3D%22psgc%22%2C%20how%3D%22anti%22)'%2C%20%22where%22%3A%20%5B(S2%2C%20%22S2.2%22%2C%20%22%23%23%20S2.2%20%C2%B7%20The%20months%20with%20no%20file%22)%2C%20(S2%2C%20%22S2.5%22%2C%20%22%23%23%20S2.5%20%C2%B7%20Codes%20that%20match%20nothing%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22window%20expression%22%2C%20%22kind%22%3A%20%22polars%22%2C%20%22meaning%22%3A%20%22An%20expression%20computed%20over%20each%20group's%20rows%20and%20set%20beside%20every%20one%20of%20them%2C%20without%20collapsing%20the%20table%3A%20polars'%20.over()%2C%20as%20pandas'%20groupby(...).transform().%22%2C%20%22example%22%3A%20'pl.col(%22area_ha%22).sum().over(%22province%22)'%2C%20%22where%22%3A%20%5B(S2%2C%20%22S2.3%22%2C%20%22%23%23%20S2.3%20%C2%B7%20Each%20crop's%20share%20of%20its%20province's%20farm%20area%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%23%20Charts%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22matplotlib%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22Python's%20oldest%20chart%20library%3A%20you%20draw%20on%20a%20figure's%20axes%2C%20step%20by%20step%2C%20with%20full%20control%20of%20every%20part.%22%2C%20%22example%22%3A%20%22fig%2C%20ax%20%3D%20plt.subplots()%3B%20ax.bar(x%2C%20y)%22%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20A%20first%20chart%2C%20three%20ways%3A%20matplotlib%2C%20seaborn%2C%20Altair%22)%2C%20(V%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20matplotlib%20and%20Altair%3A%20from%20a%20table%20of%20what%20to%20draw%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22figure%20and%20axes%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22In%20matplotlib%2C%20the%20figure%20is%20the%20whole%20picture%20and%20an%20axes%20is%20one%20chart%20in%20it%2C%20with%20its%20own%20x%20and%20y%20axis.%22%2C%20%22example%22%3A%20%22fig%2C%20ax%20%3D%20plt.subplots()%22%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20A%20first%20chart%2C%20three%20ways%3A%20matplotlib%2C%20seaborn%2C%20Altair%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22seaborn%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22A%20library%20on%20top%20of%20matplotlib%20that%20draws%20from%20a%20table's%20raw%20rows%20and%20column%20names%2C%20with%20statistics%20built%20in%20(means%2C%20error%20bars%2C%20counts).%22%2C%20%22example%22%3A%20'sns.barplot(data%3Dplots%2C%20x%3D%22crop%22%2C%20y%3D%22area_ha%22)'%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20A%20first%20chart%2C%20three%20ways%3A%20matplotlib%2C%20seaborn%2C%20Altair%22)%2C%20(V%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20seaborn%3A%20from%20the%20raw%20rows%2C%20with%20statistics%20built%20in%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22Altair%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22A%20library%20that%20describes%20a%20chart%20as%20encodings%2C%20columns%20mapped%20to%20x%2C%20y%20and%20color%2C%20and%20draws%20it%20for%20the%20web%2C%20with%20tooltips%20and%20clicks.%22%2C%20%22example%22%3A%20'alt.Chart(t).mark_bar().encode(x%3D%22crop%3AN%22%2C%20y%3D%22area_ha%3AQ%22)'%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20A%20first%20chart%2C%20three%20ways%3A%20matplotlib%2C%20seaborn%2C%20Altair%22)%2C%20(V%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20matplotlib%20and%20Altair%3A%20from%20a%20table%20of%20what%20to%20draw%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22encoding%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22In%20Altair%2C%20which%20column%20goes%20to%20which%20visual%20channel%20(x%2C%20y%2C%20color%2C%20tooltip)%2C%20and%20its%20type%3A%20N%20for%20categories%2C%20Q%20for%20quantities%2C%20T%20for%20time.%22%2C%20%22example%22%3A%20'x%3D%22province%3AN%22%2C%20y%3D%22yield%3AQ%22'%2C%20%22where%22%3A%20%5B(S%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20A%20first%20chart%2C%20three%20ways%3A%20matplotlib%2C%20seaborn%2C%20Altair%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22baseline%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22Where%20a%20bar%20starts.%20Bars%20compare%20lengths%2C%20so%20they%20start%20at%20zero%3B%20a%20cut%20axis%20makes%20small%20differences%20look%20large.%22%2C%20%22example%22%3A%20%22ax.set_ylim(bottom%3D0)%22%2C%20%22where%22%3A%20%5B(V%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20Comparison%3A%20bars%20start%20at%20zero%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22distribution%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22How%20the%20values%20of%20one%20measure%20spread%3A%20where%20most%20of%20them%20are%2C%20how%20far%20they%20range.%20A%20histogram%20or%20a%20box%20plot%20shows%20it.%22%2C%20%22example%22%3A%20'ax.hist(yields%2C%20bins%3D30)'%2C%20%22where%22%3A%20%5B(V%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20Distribution%3A%20what%20is%20counted%2C%20and%20how%20the%20values%20spread%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22bootstrap%20interval%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22An%20interval%20found%20by%20resampling%20the%20rows%20many%20times%20and%20recomputing%20the%20summary%20each%20time%3B%20seaborn's%20default%20error%20bars.%20It%20assumes%20a%20simple%20random%20sample%2C%20which%20a%20weighted%20survey%20is%20not.%22%2C%20%22example%22%3A%20'sns.barplot(plots%2C%20x%3D%22province%22%2C%20y%3D%22yield_t_ha%22)'%2C%20%22where%22%3A%20%5B(V%2C%20%22%C2%A72%22%2C%20%22%23%23%23%20seaborn%3A%20from%20the%20raw%20rows%2C%20with%20statistics%20built%20in%22)%2C%20(S3%2C%20%22S3.2%22%2C%20%22%23%23%20S3.2%20%C2%B7%20Honest%20error%20bars%2C%20or%20none%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22trend%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22How%20a%20measure%20changes%20over%20time%2C%20drawn%20as%20a%20line%20on%20an%20even%20time%20axis%3B%20a%20missing%20period%20stays%20a%20gap%20in%20the%20line.%22%2C%20%22example%22%3A%20%22a%20line%20of%20palay%20prices%20by%20month%22%2C%20%22where%22%3A%20%5B(V%2C%20%22%C2%A71%22%2C%20%22%23%23%23%20Trend%3A%20time%20runs%20evenly%2C%20and%20a%20gap%20stays%20a%20gap%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22app%20(marimo)%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22A%20notebook%20shown%20without%20its%20code%2C%20so%20its%20controls%2C%20tables%20and%20charts%20work%20as%20a%20small%20tool%3A%20marimo%20run%20notebook.py.%22%2C%20%22example%22%3A%20%22marimo%20run%2060_charts_and_sharing.py%22%2C%20%22where%22%3A%20%5B(V%2C%20%22%C2%A73%22%2C%20%22%23%23%23%20How%20marimo%20makes%20an%20app%22)%2C%20(V%2C%20%22%C2%A73%22%2C%20%22%23%23%23%20Sharing%20it%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22UI%20element%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22A%20control%20in%20a%20marimo%20notebook%2C%20such%20as%20a%20dropdown%20or%20a%20slider%3B%20the%20cells%20that%20use%20its%20value%20rerun%20when%20it%20changes.%22%2C%20%22example%22%3A%20'mo.ui.dropdown(options%3Dprovinces)'%2C%20%22where%22%3A%20%5B(V%2C%20%22%C2%A73%22%2C%20%22%23%23%23%20The%20app%22)%2C%20(P1%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20Text%2C%20controls%20and%20%60mo.stop%60%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22small%20multiples%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22The%20same%20chart%20drawn%20once%20per%20group%2C%20side%20by%20side%20on%20one%20shared%20scale%2C%20so%20the%20groups%20can%20be%20compared%20at%20a%20glance.%22%2C%20%22example%22%3A%20%22plt.subplots(2%2C%204%2C%20sharey%3DTrue)%22%2C%20%22where%22%3A%20%5B(S3%2C%20%22S3.1%22%2C%20%22%23%23%20S3.1%20%C2%B7%20Small%20multiples%20by%20province%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22error%20bar%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22A%20line%20through%20a%20bar%20or%20point%20showing%20how%20uncertain%20its%20value%20is.%20Say%20what%20it%20measures%2C%20or%20leave%20it%20out.%22%2C%20%22example%22%3A%20'sns.barplot(...%2C%20errorbar%3DNone)'%2C%20%22where%22%3A%20%5B(S3%2C%20%22S3.2%22%2C%20%22%23%23%20S3.2%20%C2%B7%20Honest%20error%20bars%2C%20or%20none%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22trend%20line%20(least%20squares)%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22The%20straight%20line%20that%20fits%20a%20scatter%20of%20points%20best%2C%20computed%20by%20least%20squares%3A%20the%20one%20whose%20squared%20distances%20from%20the%20points%20add%20up%20to%20the%20least.%20A%20link%2C%20not%20a%20cause.%22%2C%20%22example%22%3A%20%22slope%2C%20intercept%20%3D%20np.polyfit(x%2C%20y%2C%201)%22%2C%20%22where%22%3A%20%5B(S3%2C%20%22S3.4%22%2C%20%22%23%23%20S3.4%20%C2%B7%20A%20trend%20line%3A%20fertilizer%20and%20yield%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22tooltip%22%2C%20%22kind%22%3A%20%22Charts%22%2C%20%22meaning%22%3A%20%22The%20box%20that%20appears%20when%20the%20pointer%20rests%20on%20a%20mark%2C%20showing%20the%20values%20behind%20it.%20Altair's%20charts%20have%20them%3B%20matplotlib's%20and%20seaborn's%20do%20not.%22%2C%20%22example%22%3A%20'encode(tooltip%3D%5B%22province%22%2C%20%22yield_t_ha%22%5D)'%2C%20%22where%22%3A%20%5B(S3%2C%20%22S3.5%22%2C%20%22%23%23%20S3.5%20%C2%B7%20A%20tooltip%20that%20answers%20the%20next%20question%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%23%20marimo%20and%20the%20course%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22reactive%20notebook%22%2C%20%22kind%22%3A%20%22marimo%22%2C%20%22meaning%22%3A%20%22marimo%20reruns%20every%20cell%20that%20uses%20a%20name%20when%20the%20cell%20that%20defines%20it%20changes%2C%20so%20the%20notebook%20always%20matches%20its%20code.%22%2C%20%22example%22%3A%20%22change%20a%20slider%3A%20the%20chart%20under%20it%20follows%22%2C%20%22where%22%3A%20%5B(P1%2C%20%22%C2%A71%22%2C%20%22%23%23%201%20%C2%B7%20How%20a%20marimo%20notebook%20runs%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22one%20name%2C%20one%20cell%22%2C%20%22kind%22%3A%20%22marimo%22%2C%20%22meaning%22%3A%20%22Each%20name%20is%20defined%20in%20one%20cell%20only%3B%20a%20name%20starting%20with%20_%20stays%20private%20to%20its%20cell.%22%2C%20%22example%22%3A%20%22_fig%2C%20_ax%20%3D%20plt.subplots()%22%2C%20%22where%22%3A%20%5B(P1%2C%20%22%C2%A72%22%2C%20%22%23%23%202%20%C2%B7%20One%20name%2C%20one%20cell%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22mo.stop%22%2C%20%22kind%22%3A%20%22marimo%22%2C%20%22meaning%22%3A%20%22Stop%20a%20cell%20here%2C%20showing%20a%20message%20instead%2C%20until%20a%20condition%20no%20longer%20holds.%22%2C%20%22example%22%3A%20'mo.stop(x%20is%20NOT_YET%2C%20waiting_for(%22Exercise%204.3%22))'%2C%20%22where%22%3A%20%5B(P1%2C%20%22%C2%A73%22%2C%20%22%23%23%203%20%C2%B7%20Text%2C%20controls%20and%20%60mo.stop%60%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22check%22%2C%20%22kind%22%3A%20%22marimo%22%2C%20%22meaning%22%3A%20%22The%20cell%20under%20an%20exercise%20that%20runs%20your%20function%20on%20several%20inputs%20and%20says%20whether%20each%20result%20is%20right%2C%20without%20showing%20the%20answer.%22%2C%20%22example%22%3A%20%22check_cases(%5C%22Exercise%202.5%5C%22%2C%20...)%22%2C%20%22where%22%3A%20%5B(P1%2C%20%22%C2%A75%22%2C%20%22%23%23%205%20%C2%B7%20How%20the%20exercises%20work%22)%5D%7D%2C%0A%20%20%20%20%20%20%20%20%7B%22term%22%3A%20%22traceback%22%2C%20%22kind%22%3A%20%22marimo%22%2C%20%22meaning%22%3A%20%22The%20error%20report%20Python%20prints.%20Read%20its%20last%20line%20first%3A%20the%20kind%20of%20error%20and%20its%20message.%22%2C%20%22example%22%3A%20%22KeyError%3A%20'crop'%22%2C%20%22where%22%3A%20%5B(P1%2C%20%22%C2%A76%22%2C%20%22%23%23%206%20%C2%B7%20Reading%20an%20error%22)%5D%7D%2C%0A%20%20%20%20%5D%0A%0A%0A%40app.cell(hide_code%3DTrue)%0Adef%20_()%3A%0A%20%20%20%20mo.md(r%22%22%22%0A%20%20%20%20%23%20Glossary%0A%0A%20%20%20%20The%20words%20the%20course%20uses%2C%20in%20plain%20language.%20Type%20in%20the%20box%20to%20find%20one%3B%20each%20entry%20says%20where%20you%20meet%20it%2C%20with%20a%20link%20to%20that%20notebook.%0A%20%20%20%20%22%22%22)%0A%20%20%20%20return%0A%0A%0A%40app.cell(hide_code%3DTrue)%0Adef%20_()%3A%0A%20%20%20%20search%20%3D%20mo.ui.text(placeholder%3D%22type%20a%20word%2C%20like%20join%20or%20weight%22%2C%20label%3D%22Find%3A%22%2C%20full_width%3DTrue)%0A%20%20%20%20kind%20%3D%20mo.ui.dropdown(options%3D%5B%22all%22%2C%20%22Data%22%2C%20%22NumPy%22%2C%20%22pandas%22%2C%20%22polars%22%2C%20%22Charts%22%2C%20%22marimo%22%5D%2C%20value%3D%22all%22%2C%20label%3D%22Kind%3A%22)%0A%20%20%20%20mo.hstack(%5Bsearch%2C%20kind%5D%2C%20justify%3D%22start%22%2C%20gap%3D2%2C%20widths%3D%5B3%2C%201%5D)%0A%20%20%20%20return%20kind%2C%20search%0A%0A%0A%40app.cell(hide_code%3DTrue)%0Adef%20_(kind%2C%20search)%3A%0A%20%20%20%20_needle%20%3D%20search.value.strip().lower()%0A%20%20%20%20_found%20%3D%20%5B%0A%20%20%20%20%20%20%20%20t%20for%20t%20in%20sorted(TERMS%2C%20key%3Dlambda%20t%3A%20t%5B%22term%22%5D.lower())%0A%20%20%20%20%20%20%20%20if%20(kind.value%20%3D%3D%20%22all%22%20or%20t%5B%22kind%22%5D%20%3D%3D%20kind.value)%0A%20%20%20%20%20%20%20%20and%20(not%20_needle%20or%20_needle%20in%20t%5B%22term%22%5D.lower()%20or%20_needle%20in%20t%5B%22meaning%22%5D.lower())%0A%20%20%20%20%5D%0A%0A%20%20%20%20def%20_entry(t)%3A%0A%20%20%20%20%20%20%20%20where%20%3D%20%22%3B%20%22.join(f%22%5B%7Bnb%7D%5D(%7B'%2F%3Ffile%3D'%20%2B%20nb%7D)%2C%20%7Bplace%7D%22%20for%20nb%2C%20place%2C%20_%20in%20t%5B%22where%22%5D)%0A%20%20%20%20%20%20%20%20example%20%3D%20f%22%5Cn%5Cn%60%7Bt%5B'example'%5D%7D%60%22%20if%20t%5B%22example%22%5D%20else%20%22%22%0A%20%20%20%20%20%20%20%20return%20f%22**%7Bt%5B'term'%5D%7D**%20%C2%B7%20*%7Bt%5B'kind'%5D%7D*%5Cn%5Cn%7Bt%5B'meaning'%5D%7D%7Bexample%7D%5Cn%5CnWhere%3A%20%7Bwhere%7D%22%0A%0A%20%20%20%20mo.vstack(%5B%0A%20%20%20%20%20%20%20%20mo.md(f%22%7Blen(_found)%7D%20of%20%7Blen(TERMS)%7D%20terms.%22)%2C%0A%20%20%20%20%20%20%20%20*%5Bmo.md(_entry(t))%20for%20t%20in%20_found%5D%2C%0A%20%20%20%20%5D%20if%20_found%20else%20%5Bmo.md(f%22No%20term%20matches%20*%7Bsearch.value%7D*.%20Try%20a%20shorter%20word.%22)%5D)%0A%20%20%20%20return%0A%0A%0Aif%20__name__%20%3D%3D%20%22__main__%22%3A%0A%20%20%20%20app.run()%0A
975393a7a6de90f5b6f7602223c4e30d