Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- MateusAsato
- 메서드
- 텔레
- 리스트
- 로즈우드
- Asato
- 논리연산자
- 존써
- 펜더
- group by
- 스트라토캐스터
- 로스티드메이플
- 커스텀
- SQL
- ansi표준
- 파이썬
- 서브쿼리
- oracle
- 오라클
- Python
- 오더
- 쏜버커
- 메이플
- 적용함수
- case문
- Suhr
- Prs
- to_date
- 조인
- Decode
Archives
- Today
- Total
목록리스트내포표현식 (1)
Big Bro's Studying Archive

""" Created on Fri Apr 10 10:17:32 2020 @author: Yoon Baek """ 로또 생성 프로그램 만들어보기 import random lot = [] while len(lot) 1500 : comm2.append('A') else : comm2.append('B') comm2 sol 2 f3 = lambda x : 'A' if x > 1500 else 'B' list(map(f3, comm)) sol 3 ['A' if i > 1500 else 'B' for i in comm] sol 4 : np.where의 활용 np.where(np.array(comm) > 1500, 'A', 'B') numpy의 np.where 함수를 활용할 수 있다. R의 ifelse함수와 똑같은 ..
Big Data展
2020. 4. 21. 14:58