Jupyter NoteBook
Agus Sudarmanto

Agus Sudarmanto @agussudarmanto

About: Web Application Developer - learn new things

Location:
Indonesia
Joined:
Sep 20, 2019

Jupyter NoteBook

Publish Date: Dec 29 '25
1 0

Jupyter

Here are sample code of my Jupyter Notebook exploration

- Query from CSV file

Right, you can do a query to csv file, just use jupysql and duckdb engine

# Query using csv file
%pip install jupysql duckdb duckdb-engine
%load_ext sql
%sql duckdb://

%%sql
SELECT GolonganRuang, AVG(Usia) AS rata_rata_usia, COUNT(*) AS jumlah 
FROM 'datapeg.csv'
GROUP BY GolonganRuang
ORDER BY rata_rata_usia;
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment