Skip to content

Instantly share code, notes, and snippets.

@gabidoye
gabidoye / gap.py
Created September 5, 2022 16:31
GPA Solution
students = {
"name":"y",
"studentid":"z",
"courses":[
{
"Coursetitle":"English",
"Unit":2,
"CourseCode":"ENG",
@gabidoye
gabidoye / DE_ZoomCamp Week2 Assignment.md
Last active February 2, 2022 23:46
DE_ZoomCamp Week2 Assignment (
--Question 3: Count records
select date(tpep_pickup_datetime), count(tpep_pickup_datetime) from public.yellow_taxi_trips
where date(tpep_pickup_datetime)='2021-01-15'
group by date(tpep_pickup_datetime)
--Question 4: Largest tip for each day
select date(tpep_pickup_datetime), max(tip_amount) from public.yellow_taxi_trips
where (select extract(month from(date(tpep_pickup_datetime))))='01'
group by date(tpep_pickup_datetime)
/* Sample data */
insert into emp (EMPID, NAME, JOB, SALARY)
values
(201, 'ANIRUDDHA', 'ANALYST', 2100),
(212, 'LAKSHAY', 'DATA ENGINEER', 2700),
(209, 'SIDDHARTH', 'DATA ENGINEER', 3000),
(232, 'ABHIRAJ', 'DATA SCIENTIST', 2500),
(205, 'RAM', 'ANALYST', 2500),
(222, 'PRANAV', 'MANAGER', 4500),
(202, 'SUNIL', 'MANAGER', 4800),
@gabidoye
gabidoye / Fire Incident Data Preparation.ipynb
Last active July 5, 2021 23:28
spark/salesdata/FireIncident.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.