From acf74d18c791e79ad9b97a6fefd2847ab78bc9d4 Mon Sep 17 00:00:00 2001 From: Roman Solomatin <36135455+Samoed@users.noreply.github.com> Date: Sun, 1 Oct 2023 01:01:55 +0500 Subject: [PATCH] Fix pandas DataFrame in examples --- docs/examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 8ab0be765..9d43e6832 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -12,11 +12,11 @@ from pandasai import SmartDataframe import pandas as pd # pandas dataframe -df = pd.DataFrame([ +df = pd.DataFrame({ "country": ["United States", "United Kingdom", "France", "Germany", "Italy", "Spain", "Canada", "Australia", "Japan", "China"], "gdp": [19294482071552, 2891615567872, 2411255037952, 3435817336832, 1745433788416, 1181205135360, 1607402389504, 1490967855104, 4380756541440, 14631844184064], "happiness_index": [6.94, 7.16, 6.66, 7.07, 6.38, 6.4, 7.23, 7.22, 5.87, 5.12] -]) +}) # convert to SmartDataframe df = SmartDataframe(df)