Interoperable Python and SQL in Jupyter Notebooks -번역

Jupyter 노트북의 상호 운용 가능한 파이썬 및 SQL.

팬더, 스파크 및 마스크 맨 위에 SQL 사용

First look at FugueSQL in Jupyter

Motivation

ANSI SQL을 통한 향상된 기능

데이터 프레임이있는 가변 할당

Ipython-SQL과 비교합니다

푸 듀 로고

스파크와 마스크가있는 분산 계산

판다와 간단한 중앙값

prepartition 및 medians를 얻으려는 불꽃

결론 및 더 많은 예

노트북의 설치

PIP 설치 Fugue
Fugue_Notebook 가져 오기 설정에서
설정()

Contact Us

Interoperable Python and SQL in Jupyter Notebooks

Interoperable Python and SQL in Jupyter Notebooks

Using SQL on top of Pandas, Spark, and Dask

First look at FugueSQL in Jupyter

Motivation

Enhancements Over ANSI SQL

Variable assignment with DataFrames

Comparison to ipython-sql

Fugue Logo

Distributed Compute with Spark and Dask

Simple median function with Pandas

Prepartition and Spark to get the medians

Conclusion and More Examples

Setup in Notebooks

pip install fugue
from fugue_notebook import setup
setup()

Contact Us

2021년 3월 23일 성남시 분당구 부동산 경매 데이터 분석

2021년 3월 23일 용인시 부동산 경매 데이터 분석

경기도 용인시 기흥구 죽전로 20, 11층104동1101호 (보정동,죽전누리에뜰) [집합건물 철근콘크리트조 99.53㎡]

경기도 용인시 기흥구 죽전로 20

50m
Kakao 맵으로 이동(새창열림)

항목
경매번호 2020타경53363
경매날짜 2021.04.06
법원 수원지방법원
담당 경매10계
감정평가금액 440,000,000
경매가 440,000,000(100%)
유찰여부 신건


<최근 1년 실거래가 정보>
– 총 거래 수: 0건
– 동일 평수 거래 수: 0건

경기도 용인시 처인구 금령로173번길 14, 102동 4층306호 (마평동,두보아파트) [집합건물 철근콘크리트조 120.83㎡]

경기도 용인시 처인구 금령로173번길 14

50m
Kakao 맵으로 이동(새창열림)

항목
경매번호 2020타경154
경매날짜 2021.04.06
법원 수원지방법원
담당 경매10계
감정평가금액 220,000,000
경매가 107,800,000(49%)
유찰여부 유찰\t2회

  • 본건 건물은 지하1층을 통상 1층이라고 봄(현황조사서 참조) 재매각임. 매수신청보증금 20%

<최근 1년 실거래가 정보>
– 총 거래 수: 0건
– 동일 평수 거래 수: 0건

2021년 3월 23일 수원시 부동산 경매 데이터 분석

경기도 수원시 권선구 금호로15번길 15, 103동 5층510호 (금곡동,신미주아파트) [집합건물 철근콘크리트벽식구조 59.89㎡]

경기도 수원시 권선구 금호로15번길 15

50m
Kakao 맵으로 이동(새창열림)

항목
경매번호 2020타경63698
경매날짜 2021.04.06
법원 수원지방법원
담당 경매10계
감정평가금액 190,000,000
경매가 190,000,000(100%)
유찰여부 신건


<최근 1년 실거래가 정보>
– 총 거래 수: 48건
– 동일 평수 거래 수: 20건

최근 1년 동일 평수 거래건 보기

날짜 전용면적 가격
2020-11-13 59.89 2 17000
2020-11-24 59.89 13 19900
2020-11-07 59.89 3 20000
2020-10-18 59.89 3 19900
2020-10-25 59.89 12 17400
2020-09-26 59.89 2 16800
2020-08-15 59.89 12 18000
2020-08-20 59.89 14 17800
2020-08-07 59.89 10 19000
2020-07-10 59.89 3 16800
2020-07-25 59.89 19 16400
2020-07-09 59.89 7 17300
2020-06-13 59.89 4 16500
2020-06-15 59.89 10 18300
2020-06-20 59.89 7 17200
2020-06-26 59.89 10 18900
2020-06-27 59.89 3 16800
2020-06-03 59.89 19 18000
2020-06-30 59.89 4 15000
2020-04-22 59.89 8 18000

경기도 수원시 권선구 수성로 47, 5동 3층304호 (구운동,삼환아파트) [집합건물 프리케스트콘크리트조 108.94㎡]

50m
Kakao 맵으로 이동(새창열림)

항목
경매번호 2020타경62985,2020타경10809(중복)
경매날짜 2021.04.06
법원 수원지방법원
담당 경매10계
감정평가금액 390,000,000
경매가 390,000,000(100%)
유찰여부 신건


<최근 1년 실거래가 정보>
– 총 거래 수: 133건
– 동일 평수 거래 수: 9건

최근 1년 동일 평수 거래건 보기

날짜 전용면적 가격
2021-03-05 108.94 1 48000
2020-09-11 108.94 8 38000
2020-07-22 108.94 2 38000
2020-07-22 108.94 2 38000
2020-07-06 108.94 4 39500
2020-06-12 108.94 4 39000
2020-06-06 108.94 10 38000
2020-03-03 108.94 5 36500
2020-03-04 108.94 6 37250

2021년 3월 22일 모바일 게임 매출 순위

Rank Game Publisher
1 리니지M NCSOFT
2 리니지2M NCSOFT
3 Cookie Run: Kingdom – Kingdom Builder & Battle RPG Devsisters Corporation
4 기적의 검 4399 KOREA
5 Genshin Impact miHoYo Limited
6 삼국지 전략판 Qookka Games
7 그랑사가 NPIXEL
8 V4 NEXON Company
9 원펀맨: 최강의 남자 GAMENOW TECHNOLOGY
10 리니지2 레볼루션 Netmarble
11 라이즈 오브 킹덤즈 LilithGames
12 세븐나이츠2 Netmarble
13 PUBG MOBILE KRAFTON, Inc.
14 A3: 스틸얼라이브 Netmarble
15 이카루스 이터널 LINE Games
16 바람의나라: 연 NEXON Company
17 뮤 아크엔젤 Webzen Inc.
18 S.O.S:스테이트 오브 서바이벌 KingsGroup Holdings
19 미르4 Wemade Co., Ltd
20 블레이드&소울 레볼루션 Netmarble
21 R2M Webzen Inc.
22 Roblox Roblox Corporation
23 메이플스토리M NEXON Company
24 Brawl Stars Supercell
25 KartRider Rush+ NEXON Company
26 프린세스 커넥트! Re:Dive Kakao Games Corp.
27 FIFA ONLINE 4 M by EA SPORTS™ NEXON Company
28 검은강호2: 이터널 소울 9SplayDeveloper
29 카운터사이드 NEXON Company
30 AFK 아레나 LilithGames
31 Gardenscapes Playrix
32 Top War: Battle Game Topwar Studio
33 Pmang Poker : Casino Royal NEOWIZ corp
34 라그나로크 오리진 GRAVITY Co., Ltd.
35 Empires & Puzzles: Epic Match 3 Small Giant Games
36 찐삼국 ICEBIRD GAMES
37 Age of Z Origins Camel Games Limited
38 갑부: 장사의 시대 BLANCOZONE NETWORK KOREA
39 Homescapes Playrix
40 Cookie Run: OvenBreak – Endless Running Platformer Devsisters Corporation
41 Lords Mobile: Kingdom Wars IGG.COM
42 달빛조각사 Kakao Games Corp.
43 FIFA Mobile NEXON Company
44 한게임 포커 NHN BIGFOOT
45 Epic Seven Smilegate Megaport
46 검은사막 모바일 PEARL ABYSS
47 컴투스프로야구2021 Com2uS
48 Mafia City YottaGame
49 가디언 테일즈 Kakao Games Corp.
50 에오스 레드 BluePotion Games

Datapane’s New Features: Create a Beautiful Dashboard in Python in a Few Lines of Code -번역

DataPane의 새로운 기능 : 몇 줄의 코드에서 파이썬에서 아름다운 대시 보드 만들기

DataPane은 이제 팬더 프로파일 링, 코드, 이미지, 사용자 정의 레이아웃 등을 지원합니다!

Motivation

데이터를 청소하고 아름다운 시각화를 만들고 도움이되는 통찰력을 얻은 후 소셜 네트워크, 친구 또는 관리자와의 결과를 공유하고 싶지만 Jupyter 노트북을 사용하여 그렇게하기가 어렵습니다.

노트북을 사용하여 노트북을 공유하는 방법이 있습니다.접합재또는github.그러나 그들은 대화 형이 아니며 그렇게 할 시간이 필요합니다.

파이썬을 사용하여 몇 줄에 몇 줄의 코드에서 찾는 것에 대한 보고서를 만들 수있는 방법이 있습니까?

저자가 창조했다

그것은 데이터 캡란이 유용 할 때입니다.

Datapane 란 무엇입니까?

DataPane. API입니다파이썬에서 데이터를 분석하고 결과를 공유 할 수있는 방법이 필요한 사람들을 위해…에Datapane의 기본 구성 요소를 설명했습니다이전 기사같은 것 :

그러나 데이터페인은 다음을 포함하여 마지막 기사가부터 더 많은 구성 요소를 도입했습니다.

  • DataTable
  • 코드, HTML 및 파일
  • 레이아웃, 페이지 및 선택

데이터 팩을 설치하려면 다음을 입력하십시오

PIP install -u datapane.

D에 가입하십시오Atapane.나만의 토큰을 얻고 해당 토큰을 DataPane에 로그인하도록 사용하려면 다음을 수행하십시오.

DPANE로 DATAPANE 가져 오기dp.login ( 'your_token')

DataTable

DataTable Block은 팬더 데이터 프레임을 보고서의 대화식 테이블로 렌더링하고 고급 분석 옵션과 같은 고급 분석 옵션을 함께 렌더링합니다.샌드 댄스팬더 프로파일 링…에

보고서를 작성해 봅시다아이리스 데이터 세트DataTable 블록을 사용합니다.사용하다dp.datatable.테이블을 만들려면.사용하다dp.report (테이블) .publish ()보고서에 대한 웹 사이트를 만들려면.

산출:

딸깍 하는 소리https://datapane.com/u/khuyentran1401/reports/iris/보고서를 보려면.링크를 클릭 할 때 아래에 표시된 것과 비슷한 것을보아야합니다.

저자가 창조했다

“Sanddance에서 분석”을 클릭하여 아래와 같이 테이블을 시각화하십시오.

저자의 GIF

“PandaS Profiling”을 클릭하여 PandaS 데이터 프레임에서 프로필 보고서를 생성합니다.당신은 아래와 같이 어떤 것을보아야합니다.

DataTable을 사용하면 웹 사이트에 멋진 테이블이 있으므로 Sanddance 또는 Pandas 프로파일 링을 사용하여 데이터를 분석 할 수도 있습니다.코드를 추가하지 않고…에!

파일 및 코드

영상

보고서에 이미지 또는 파일을 렌더링 할 수 있습니다.DataPane.File.:

저자가 창조했다

암호

때로는 출력을 표시 할뿐만 아니라 해당 출력을 만드는 데 사용되는 코드 스 니펫을 보여주고 싶을 수도 있습니다.보고서에서 코드를 렌더링하려면 단순히 랩으로 이동합니다DataPane.Code.귀하의 코드 주위.

아래의 아름다운 코드는 보고서에 렌더링됩니다!

저자가 창조했다

레이아웃, 페이지 및 선택

DataPane 보고서의 기본보기는 그렇게 좋지만 사용자 정의하려는 경우 그룹, 페이지 및 선택과 같은 구성 요소를 사용할 수 있습니다.

탭 및 선택

출력과 소스 코드 간의 전환과 같이 보고서에서 여러 블록을 대화식으로 전환하려면 사용할 수 있습니다.dp.Select…에

저자가 창조했다

위의 단어 구름 이미지는 분석 결과입니다이 연결된 기사…에

이제 “WordCloud”탭을 클릭하여 이미지를보고 “소스 코드”탭을 클릭하여 소스 코드를보십시오!

그룹

2 ~ 3 개의 구성 요소를 나란히 갖고 싶다면 사용할 수 있습니다.dp.Group

이제 당신의 테이블과 플롯은 아래와 같이 나란히 놓아야합니다!

저자가 창조했다

페이지

페이지는 선택 및 그룹에 비해 상위 수준 구성 요소입니다.한 페이지에서 여러 페이지를 사용할 수 있습니다.

위의 코드를 실행하면 보고서에 워드 클로우드와 아이리스와 같은 2 페이지가 있어야합니다!

저자가 창조했다

보너스 : 데이터 판을 사용하는 엔드 – 투 엔드 프로젝트

그게 다야!DataPane 구성 요소를 사용하여 전체 프로젝트를 보려면 보고서를 요약 한 보고서를 생성하는 엔드 투 엔드 프로젝트를 만들었습니다.기사키워드를 찾아서 해당 기사의 가장 일반적인 단어를 얻는 것입니다.

다음은 해당 프로젝트의 보고서입니다.자유롭게 놀아 라소스 코드가 있습니다…에

저자가 창조했다

결론

축하합니다!DataPane의 새로운 기능을 사용하여 파이썬에서 아름다운 보고서를 만드는 방법을 배웠습니다.지루한 코드를 공유하는 대신 이제는 분석 결과를 보여주고 팀원, 이해 관계자 또는 소셜 네트워크와 공유하는 보고서를 만들 수 있습니다!

저는 기본 데이터 과학 개념에 대해 쓰고 다른 데이터 과학 도구로 재생하는 것을 좋아합니다.당신은 나와 연결할 수 있습니다LinkedIn트위터…에

이 repo.내가 작성한 모든 기사에 대한 코드를 확인하려는 경우.중간에 나를 따라 가기 위해 최신 데이터 과학 기사에 대한 정보를 얻으십시오.

Datapane’s New Features: Create a Beautiful Dashboard in Python in a Few Lines of Code

Datapane’s New Features: Create a Beautiful Dashboard in Python in a Few Lines of Code

Datapane now Supports Pandas Profiling, Code, Images, Customized Layout, and much more!

Motivation

After cleaning the data, creating beautiful visualizations, and getting some helpful insights, you want to share your findings with your social network, friends, or managers, but find it difficult to do so using Jupyter Notebook.

There are ways for you to share your notebook using Binder or GitHub, but they are not interactive, and it takes time for you to do so.

Is there a way that you can create a report for your findings like below in a few lines of code using Python?

Created by Author

That is when Datapane comes in handy.

What is Datapane?

Datapane is an API for people who analyze data in Python and need a way to share their results. I have explained some basic component of Datapane in the previous article such as:

but Datapane has introduced many more components since my last article including:

  • DataTable
  • Code, HTML, and files
  • Layout, pages, and select

To install Datapane, type

pip install -U datapane

Sign up on Datapane to get your own token and use that token to login in Datapane:

import datapane as dp dp.login('YOUR_TOKEN')

DataTable

The DataTable block renders a pandas DataFrame as an interactive table in your report, along with advanced analysis options such as SandDance and Pandas Profiling.

Let’s create a report for iris dataset using the DataTable block. Use dp.DataTable to create a table. Use dp.Report(table).publish() to create a website for your report.

Output:

Click https://datapane.com/u/khuyentran1401/reports/iris/ to view the report. You should see something similar to what is shown below when clicking the link:

Created by Author

Click “Analyse in SandDance” to visualize the table like below.

GIF by Author

Click “Pandas Profiling” to generate a profile report from a pandas DataFrame. You should see something like below.

By using DataTable, not only do you have a nice table on a website, but you can also analyze the data using SandDance or Pandas Profiling without adding any code!

File and Code

Image

You can render an image or file in your report using datapane.File :

Created by Author

Code

Sometimes, you might not only want to show the output but also want to show the code snippet used to create that output. To render code in your report, simply wrapdatapane.Code around your code.

And a beautiful code like below will be rendered in your report!

Created by Author

Layout, Pages, and Select

The default view of a Datapane report is nice as it is, but if you want to customize it further, you can use components such as Group, Page, and Select.

Tabs and Selection

If you want to switch between multiple blocks interactively in your reports, such as switching between the output and the source code, you can use dp.Select .

Created by Author

The word cloud image above is the result of analyzing this linked article.

Now you can click the “WordCloud” tab to view the image and click the “Source code” tab to view the source code!

Group

If you want to have two or three components side-by-side, you can use dp.Group

Now your table and plot should lay side-by-side like below!

Created by Author

Page

Page is a higher-level component compared to Select and Group. Page allows you to have multiple pages within one report.

And

By running the code above, your report should have 2 pages such as WordCloud and Iris like below!

Created by Author

Bonus: An End-to-End Project Using Datapane

That’s it! If you want to see a complete project using Datapane’s components, I created an end-to-end project that generates a report summarizing an article, finding keywords, and getting the most common words of that article.

Below is the report of that project. Feel free to play with the source code here.

Created by Author

Conclusion

Congratulations! You have just learned how to use the new features of Datapane to create a beautiful report in Python. Instead of sharing boring code, now you can create a report that showcases your analysis results and share it with your teammates, stakeholders, or your social network!

I like to write about basic data science concepts and play with different data science tools. You could connect with me on LinkedIn and Twitter.

Star this repo if you want to check out the codes for all of the articles I have written. Follow me on Medium to stay informed with my latest data science articles like these:

2021년 3월 22일 성남시 분당구 부동산 경매 데이터 분석

경기도 성남시 분당구 수내로 201, 402동 9층905호 (분당동,샛별마을) [집합건물 철근콘크리트 벽식구조 84.6㎡]

50m
Kakao 맵으로 이동(새창열림)

항목
경매번호 2020타경54086
경매날짜 2021.04.05
법원 성남지원
담당 경매4계
감정평가금액 897,000,000
경매가 897,000,000(100%)
유찰여부 신건


<최근 1년 실거래가 정보>
– 총 거래 수: 33건
– 동일 평수 거래 수: 14건

최근 1년 동일 평수 거래건 보기

날짜 전용면적 가격
2021-02-22 84.6 5 129000
2020-12-04 84.6 12 118000
2020-11-19 84.6 6 108000
2020-11-21 84.6 8 115000
2020-10-30 84.6 6 112000
2020-09-19 84.6 8 106000
2020-08-17 84.6 1 102500
2020-08-29 84.6 4 100000
2020-07-07 84.6 10 95000
2020-07-08 84.6 7 96000
2020-07-09 84.6 10 95000
2020-07-09 84.6 1 90000
2020-06-15 84.6 10 89500
2020-06-17 84.6 9 92000

경기도 성남시 분당구 서판교로 29, 914동 8층802호 (판교동,판교원마을) [집합건물 철근콘크리트구조 84.9505 ㎡]

50m
Kakao 맵으로 이동(새창열림)

항목
경매번호 2020타경4005
경매날짜 2021.04.05
법원 성남지원
담당 경매7계
감정평가금액 1,110,000,000
경매가 1,110,000,000(100%)
유찰여부 신건


<최근 1년 실거래가 정보>
– 총 거래 수: 58건
– 동일 평수 거래 수: 37건

최근 1년 동일 평수 거래건 보기

날짜 전용면적 가격
2021-02-09 84.9562 2 149000
2021-01-22 84.9562 12 150000
2021-01-23 84.9958 10 150000
2021-01-25 84.9958 9 154500
2021-01-25 84.9907 18 149800
2020-12-29 84.9562 10 150000
2020-12-04 84.9958 15 147500
2020-12-07 84.9505 10 148500
2020-11-06 84.9562 5 135000
2020-10-13 84.9505 11 120000
2020-10-17 84.9562 1 120000
2020-10-25 84.9958 19 138000
2020-10-26 84.9505 16 136500
2020-10-31 84.9958 18 145000
2020-09-01 84.9505 1 114500
2020-09-05 84.9907 15 128000
2020-08-21 84.9907 14 129000
2020-08-26 84.9907 10 131500
2020-08-27 84.9562 10 133500
2020-07-16 84.9907 9 124500
2020-07-25 84.9562 13 119250
2020-07-26 84.9562 12 125000
2020-07-03 84.9958 12 116000
2020-07-04 84.9907 13 117000
2020-07-07 84.9505 5 120000
2020-06-12 84.9505 11 114000
2020-06-13 84.9958 9 109700
2020-06-17 84.9907 10 120000
2020-06-17 84.9907 12 110000
2020-06-20 84.9907 15 114000
2020-06-22 84.9958 7 107000
2020-06-30 84.9907 4 113000
2020-06-05 84.9505 8 115000
2020-06-06 84.9505 2 106000
2020-06-09 84.9907 5 109000
2020-03-14 84.9907 1 101000
2020-03-27 84.9907 16 100200

경기도 성남시 분당구 정자일로 100, 21층에이-2103호 (정자동,미켈란쉐르빌) [집합건물 철근콘크리트조 150.91㎡]

50m
Kakao 맵으로 이동(새창열림)

항목
경매번호 2019타경61859,2020타경61152(중복)
경매날짜 2021.04.05
법원 성남지원
담당 경매4계
감정평가금액 1,160,000,000
경매가 1,700,000,000(100%)
유찰여부 신건


<최근 1년 실거래가 정보>
– 총 거래 수: 66건
– 동일 평수 거래 수: 12건

최근 1년 동일 평수 거래건 보기

날짜 전용면적 가격
2020-09-10 150.91 2 128000
2020-09-11 150.91 9 135000
2020-09-16 150.91 6 140000
2020-09-23 150.91 13 154800
2020-07-02 150.91 24 120000
2020-06-24 150.91 5 138000
2020-06-25 150.91 6 123500
2020-06-29 150.91 13 133500
2020-06-09 150.91 17 135000
2020-05-01 150.91 11 120000
2020-05-02 150.91 10 140000
2020-05-30 150.91 11 125000

2021년 3월 22일 용인시 부동산 경매 데이터 분석