- 데이터 출처: https://gist.github.com/cornchz/eb495322b97bd69362a2#file-lotteria-csv
- 주의사항
- 같은 위경도를 가지는 두 점이 있으면 voronoi가 깨짐
- 그래서
screen.py
로 중복되는 점들 filtering함
- 그래서
- 같은 위경도를 가지는 두 점이 있으면 voronoi가 깨짐
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################### | |
# working with complete set of 2015 play-by-play data | |
# collected using the getData function in the openWAR | |
# package (retrieves MLBAM GameDay files) | |
# currently have this saved as a Rdata file | |
############################################### | |
load("alldata2015.Rdata") | |
# computes the run values of all plate appearances |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' The single-file, 'source'-able version of https://github.com/hrbrmstr/zellingenach | |
#' More info here: http://bit.ly/zellingenach | |
#' By @hrbrmstr (2016) | |
#' MIT LICENSE | |
# NOTE THAT YOU NEED INTERNET ACCESS TO RUN THIS SCRIPT | |
# it pulls the three necessary files (only once) from my web site | |
library(V8) | |
library(dplyr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## source: https://github.com/toddwschneider/nyc-taxi-data/blob/master/analysis/analysis.R | |
dropoffs = query("SELECT * FROM dropoff_by_lat_long_cab_type ORDER BY count") | |
dropoffs = mutate(dropoffs, cab_type_id = factor(cab_type_id)) | |
p = ggplot() + | |
geom_polygon(data = ex_staten_island_map, | |
aes(x = long, y = lat, group = group), | |
fill = "#080808", color = "#080808") + | |
geom_point(data = dropoffs, | |
aes(x = dropoff_long, y = dropoff_lat, alpha = count, size = count, color = cab_type_id)) + |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
belief | y2015 | y2014 | |
---|---|---|---|
Improves the security posture of my organization | 0.75 | 0.71 | |
Improves the security posture of the nations critical infrastructure | 0.63 | 0.64 | |
Reduces the cost of detecting and preventing cyber attacks | 0.22 | 0.21 | |
Improves situational awareness | 0.60 | 0.54 | |
Fosters collaboration among peers and industry groups | 0.48 | 0.51 | |
Enhances the timeliness of threat data | 0.11 | 0.16 | |
Makes threat data more actionable | 0.21 | 0.24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Load library mass and set seed | |
library(MASS) | |
set.seed(100) | |
# We are going to use 3 random variables | |
m <- 3 | |
# Number of samples to be drawn | |
n <- 2000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
# http://blog.yhathq.com/static/misc/data/WineKMC.xlsx | |
df_offers = pd.read_excel("./WineKMC.xlsx", sheetname=0) | |
df_offers.columns = ["offer_id", "campaign", "varietal", "min_qty", "discount", "origin", "past_peak"] | |
df_offers.head() | |
df_transactions = pd.read_excel("./WineKMC.xlsx", sheetname=1) | |
df_transactions.columns = ["customer_name", "offer_id"] | |
df_transactions['n'] = 1 | |
df_transactions.head() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
# http://blog.yhathq.com/static/misc/data/WineKMC.xlsx | |
df_offers = pd.read_excel("./WineKMC.xlsx", sheetname=0) | |
df_offers.columns = ["offer_id", "campaign", "varietal", "min_qty", "discount", "origin", "past_peak"] | |
df_offers.head() | |
df_transactions = pd.read_excel("./WineKMC.xlsx", sheetname=1) | |
df_transactions.columns = ["customer_name", "offer_id"] | |
df_transactions['n'] = 1 | |
df_transactions.head() |
- 데이터 출처: http://m.wikitree.co.kr/main/news_view.php?id=217101
- 데이터 수집: 위 기사에서
crawl.py
를 이용해 맛집 목록 수집 후 네이버 지도 API를 이용해서 좌표 정보 수집 - Author: Lucy Park
- License: Apache v2