Skip to content

Commit 542f109

Browse files
authored
Update example2_csv.py
1 parent 985fab3 commit 542f109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cat example2_csv.py import duckdb
1+
import duckdb
22

33
# Run a query directly on the CSV file
44
query = "SELECT AVG(weight) AS avg_weight FROM read_csv_auto('data.csv')"
@@ -8,4 +8,4 @@
88
# Another query to count individuals by gender
99
count_gender_query = "SELECT sex, COUNT(*) AS count FROM read_csv_auto('data.csv') GROUP BY sex"
1010
count_gender = duckdb.query(count_gender_query).to_df()
11-
print(count_gender)
11+
print(count_gender)

0 commit comments

Comments
 (0)