Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire authored Sep 1, 2024
1 parent 3bed9e7 commit 1b14070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ An inflation-adjusted column can quickly be added to a pandas DataFrame using th
import cpi
import pandas as pd
df = pd.read("https://raw.githubusercontent.com/palewire/cpi/main/tests/test.csv")
df = pd.read_csv("https://raw.githubusercontent.com/palewire/cpi/main/tests/test.csv")
df["ADJUSTED"] = df.apply(
lambda x: cpi.inflate(x.MEDIAN_HOUSEHOLD_INCOME, x.YEAR), axis=1
)
Expand Down

0 comments on commit 1b14070

Please sign in to comment.