We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 985fab3 commit 542f109Copy full SHA for 542f109
sql-queries-6/run-sql-queries-on-csv-file/example2_csv.py
@@ -1,4 +1,4 @@
1
-cat example2_csv.py import duckdb
+import duckdb
2
3
# Run a query directly on the CSV file
4
query = "SELECT AVG(weight) AS avg_weight FROM read_csv_auto('data.csv')"
@@ -8,4 +8,4 @@
8
# Another query to count individuals by gender
9
count_gender_query = "SELECT sex, COUNT(*) AS count FROM read_csv_auto('data.csv') GROUP BY sex"
10
count_gender = duckdb.query(count_gender_query).to_df()
11
-print(count_gender)
+print(count_gender)
0 commit comments