From f088dcaf69fdaea84872cdc5ec4613488010455c Mon Sep 17 00:00:00 2001 From: Chris Brinkman <92697824+chris-brinkman@users.noreply.github.com> Date: Sat, 3 Feb 2024 17:56:35 -0800 Subject: [PATCH] Update README.md for pandas >= 2.0 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a484560..c908a52 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ begin_year = 2017 end_year = 2020 for i in range(begin_year, end_year + 1): single_year = pd.DataFrame(cot.cot_year(i, cot_report_type='legacy_futopt')) - df = df.append(single_year, ignore_index=True) + df = pd.concat([df, single_year], ignore_index=True) # Example: cot_all() df = cot.cot_all(cot_report_type='legacy_fut') @@ -277,4 +277,4 @@ This project is licensed under the [MIT License](https://github.com/NDelventhal/ ## Contact -- The author: Niall Delventhal - ni.delventhal@gmail.com \ No newline at end of file +- The author: Niall Delventhal - ni.delventhal@gmail.com