Skip to content

Instantly share code, notes, and snippets.

@anirudhXshetty
anirudhXshetty / list.md
Created October 25, 2025 10:42 — forked from ih2502mk/list.md
Quantopian Lectures Saved
--User list with their favourite stores ordered by rank based on number of visits.
--Corresponding number for how often they visit on weekly basis for these 52 weeks.
--How many days between next purchase in each store for a user.
--Can be used out to filter and check users and stores for other features,
--like total regular visitors, total visitors who have visited only once for a store etc..
WITH usr_str_visits AS (
SELECT
user_id,
store_id,