일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 데이터분석
- 데이터시각화
- 취업부트캠프
- ndarray
- DataFrame
- Til
- 브루트포스 알고리즘
- 유데미부트캠프
- 넘파이
- 데이터드리븐
- matplotlb
- numpy
- 태블로
- 판다스
- 파이썬
- pandas
- 정렬
- Tableau
- 백준
- 시각화
- Leetcode
- 부트캠프후기
- 유데미
- 스타터스부트캠프
- 코딩테스트
- 유데미코리아
- 유데미큐레이션
- 그리디 알고리즘
- 데이터프레임
- python
- Today
- Total
목록전체 글 (95)
Diary, Data, IT

[TIL] 50일차 TIL(20230417) - SQL 고객분석 📗 고객 분석 ✅ 국가별 고객 수, 누적 합계 - 고객 수로 내림차순 정렬하되, 고객 수가 동일한 경우 국가명으로 오름차순 정렬 SELECT *, sum(고객수) over(ORDER BY 고객수 DESC, country) 누적합계 FROM (SELECT country, count(country) 고객수 FROM customers GROUP BY country ORDER BY count(country) desc, country) c1 sum(고객수) over(order by 고객수 desc, country)를 통해서 구할 수 있었는데, order by는 어떤 기준으로 집계할 것인지에 대한 의미와 어떤 순서로 집계할 것인지에 대한 내용까지 내포..

유데미 스타터스 취업 부트캠프 4기 - 데이터분석/시각화(태블로) 10주차 학습 일지 10주차 학습내용 📗 SQL 기초, 데이터 탐색 ✅ ERD schema 우클릭 > 다이어그램 보기 ✅ 테이블 관계 표기 ✅ 테이블 정보 조회 1. 테이블 목록 조회 select * from pg_tables where schemaname = 'northwind' order by 2; 2. 컬럼별 상세 정보 select table_name as 테이블명 , column_name as 컬럼명 , column_default as 디폴트값 , is_nullable as null가능여부 , data_type as 자료형 , character_maximum_length as 문자열최대자리수 from information_schem..

[LeetCode] 17. Letter Combinations of a Phone Number - Python Letter Combinations of a Phone Number - LeetCode Can you solve this real interview question? Letter Combinations of a Phone Number - Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. A mapping of d leetcode.com 문제 2부터 9까지의 숫자를 포..

[LeetCode] 200. Number of Islands - Python Number of Islands - LeetCode Can you solve this real interview question? Number of Islands - Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. An island is surrounded by water and is formed by connecting adjacent l leetcode.com 문제 1을 육지로, 0을 물로 가정한 2D 그리드 맵이 주어졌을 때, 섬의 개수를 계산하세요. 즉 연..

[TIL] 49일차 TIL(20230414) - SQL Z차트, 그룹함수(grouping sets, roll up) 📗 Z차트 ✅ Z차트 구성요소 - 월별매출, 매출누계, 이동년계를 이용해 Z형태의 차트를 그린다. - 매출누계: 해당 월 매출에 이전 월까지 매출 누계 - 이동년계: 해당 월의 매출에 과거 11개월의 매출을 합한 값(최근 1년차 누적 합계) - 월별매출과 매출누계를 통해 단기적 추이를 확인하고, 이동년계를 이용해 장기적 추이를 확인할 수 있다. -- 월별매출, 매출누계, 이동연계 WITH ym_sales AS ( SELECT to_char(o.order_date, 'yyyy-mm') order_ym, sum(od.quantity * od.unit_price * (1-od.discount))..

[LeetCode] 3. Longest Substring Without Repeating Characters - Python int: used = {}; max_length = 0; start = 0 for idx, char in enumerate(s): if char in used and start

[TIL] 48일차 TIL(20230413) - SQL 제품/카테고리 매출 지표 분석, PIVOT 📗 제품/카테고리 매출 지표 분석 ✅ 제품별 매출액/순위 -- 제품별 매출액 순위 테이블 WITH cte_product_sale AS ( SELECT o.order_id, o.customer_id, o.order_date, to_char(order_date, 'YYYY') order_year, to_char(order_date, 'MM') order_MONTH, to_char(order_date, 'DD') order_DAY, TO_CHAR(ORDER_DATE, 'QUARTER') order_QUARTER, od.unit_price, od.quantity, od.discount, (od.unit_price ..

[TIL] 47일차 TIL(20230412) - SQL CTE, WINDOW 함수 📗 임시테이블, CTE ✅ 임시테이블 생성 임시 테이블은 현재 세션이 유지되는 동안만 존재하는 테이블로, 반복적으로 사용해야하는 쿼리가 있다면 해당 쿼리를 사용하여 테이블을 임시로 생성해둔 뒤 지속적으로 활용할 수 있다. 임시 테이블은 실제 테이블과 동일한 방식으로 사용 가능하다. (SELECT ~ FROM) CREATE TEMPORARY TABLE 테이블명 AS (QUERY ~) ✅ 공통테이블 표현식 CTE - 복잡한 쿼리문의 결과에 이름을 붙여 임시 테이블로 사용하는 방법 - 복잡한 쿼리문이 반복해서 사용될 때 유용하다. - 코드의 가독성, 재사용성을 높일 수 있다. - 일회용이므로 재사용하려면 코드를 저장해두어야 하며..