Comments (1)
안녕하세요 포스팅 잘 읽었습니다.
혹시 바쁘지 않으시다면 질문드리고 싶은 부분이 있습니다.
TempView로 생성한 테이블 내의 값을 활용하여 제플린 코드가 반복적으로 돌릴 수 있을까요?
예를들어 원데이터에서 랜덤하게 몇개 행만 뽑아서 TempView로
v_1라는 테이블(key값에 따라 특정 컬럼 값이 중복되는 행을 보여주는 테이블)과
v_1_rate라는 테이블(위의 key값에 따라 특정 컬럼 값이 중복되는 행의 비율을 보여주는 테이블 / key컬럼과 v_1을 기반으로 계산된 rate(비율값) 컬럼 존재)을 만드는데,
여기서 v_1_rate 내의 rate(비율값)가 0.5 이상이면 TempView를 다시 생성하고 싶습니다.
제플린 내에서 %sql 을 쓰고 sql 문법으로 while 반복문을 실행하려고 했지만
완전히 똑같지가 않은지 에러가 뜨고
그렇다고 스칼라문법으로 반복문을 찾아봤지만, 이마저도 TempView를 통해 만든 테이블 내의 값을 활용할 수가 없어 헤매고 있습니다.
혹시 아시는 방법이 있을까요?
This comment was made by Disqus. 2020-03-10 05:45:01 재이Jay
from blog-comments.
Related Issues (20)
- awesome-workaction/goseong/base HOT 2
- diary/2020/12/27/2020-retrospect/ HOT 3
- diary/2021/01/24/rules-of-telecommuting/ HOT 1
- mlops/2021/02/07/python-streamlit-dashboard/ HOT 4
- diary/2021/02/21/various-data-jobs/ HOT 1
- mlops/2021/04/18/bentoml-basic/ HOT 2
- gcp/2021/05/16/bigquery-pivot/ HOT 1
- data/2021/06/13/data-event-log-definition/ HOT 10
- diary/2021/12/26/2021-retrospective/ HOT 2
- diary/2022/06/17/boostcamp-aitech-lecture-design-retrospective/
- data/2019/09/02/simpy-intro/
- mlops/2021/01/03/python-ray/
- data-for-pm/
- http://localhost:8000/data-for-pm/first-day/product-and-bm.html
- data-for-pm/first-day/data
- data-for-pm/guide
- data-for-pm/first-day/basic HOT 2
- development/2020/07/05/python-namedtuple/ HOT 2
- diary/2023/04/06/2022-retrospective/ HOT 4
- data-for-pm/metric-hierarchy/basic HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog-comments.