일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- string
- Kotlin
- matplotlib
- Mac
- Github
- Google Excel
- django
- SQL
- GIT
- hive
- Java
- PostgreSQL
- 파이썬
- PANDAS
- math
- Excel
- PySpark
- Python
- numpy
- google apps script
- Apache
- Redshift
- list
- gas
- c#
- Google Spreadsheet
- array
- Tkinter
- dataframe
- Today
- Total
목록분류 전체보기 (832)
달나라 노트
Hive에서 s3 서버를 다룰 수 있는 방법을 알아봅시다. ----- Hive database -> S3 server ----- drop table if exists test_schema.test_table; create external table test_schema.test_table ( col_1 bigint, col_2 string ) row format serde 'org.apache.hadoop.hive.serde2.OpenCSVSerde' -- row format delimited fields terminated by ',' -- lines terminated by '\n' stored as textfile location 's3://root_dir/test_dir/' ; ----- Inse..
edate(base_date, months) edate 함수는 위처럼 사용할 수 있습니다. base_date(기준 날짜)에 months만큼의 월을 더한 날짜의 일련번호를 반환합니다. =edate("2021-01-02", 2) --> 44257 =edate("2021-01-02", -2) --> 44137 위처럼 2021-01-02에서 2개월을 더한 날짜와 뺀 날짜를 해당 날짜의 일련번호의 형태로 반환합니다. 위 반환값을 날짜로 표시하려면 엑셀의 표시형식을 날짜로 바꿔주면 됩니다. 그러면 아래와 같이 날짜를 얻을 수 있습니다. =edate("2021-01-02", 2) --> 2021-03-02 =edate("2021-01-02", -2) --> 2020-11-02
iserror(value) iserror(parameter) iserror 함수는 parameter로 제시된 값(또는 식)의 결과가 Error라면 TRUE를 Error가 아니라면 FALSE를 반환합니다. #DIV/0! #N/A #VALUE! #REF! #NAME? #NUM! #NULL! #SPILL! 에러의 종류는 위와 같습니다. =iserror(vlookup(A1, C1:B10, 2, 0)) 예를들어 위 식에서 vlookup의 결과가 제대로 출력된다면 error가 아니므로 FALSE가 반환될 것입니다. 그러나 만약 vlookup으로 A1의 값을 찾을 수 없어 #N/A라는 에러가 뜬다면 iserror의 결과에 의해 TRUE가 반환됩니다.
date_add(datepart, interval_value, date/time/timestamp) date_add 함수는 위처럼 사용할 수 있습니다. datepart = 날짜 연산을 할 날짜 단위(e.g. day, week, month, year ...) interval_value = 날짜 연산을 할 시간의 양 date/time/timestamp = 기준 날짜 select current_date; --> 2021-02-22 select date_add('day', 10, current_date); --> 2021-03-04 00:00:00.000000 select date_add('week', 2, current_date); --> 2021-03-08 00:00:00.000000 select date_..