Skip to content

Commit

Permalink
Fix pandas DataFrame in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Samoed authored Sep 30, 2023
1 parent b480df1 commit acf74d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit acf74d1

Please sign in to comment.