If you want to find the percentage change between the current and a prior element in a pandas Series, use the pct_change method.
pct_change
In the example below, 35 is 75% larger than 20, and 10 is 71.4% smaller than 35.
DuckDB: Simplify DataFrame Analysis with Serverless SQL
Simplifying Dataset Comparison with Datacompy
Fuzzy Joining Tables with Non-Exact Matching Entries
Your email address will not be published. Required fields are marked *
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Δ