Skip to content

Instantly share code, notes, and snippets.

Avatar

Sihyung Park naturale0

View GitHub Profile
@naturale0
naturale0 / MCP_simulation.ipynb
Last active Dec 19, 2018
python class for converting p-values to adjusted p-values (or q-values) for multiple comparison correction.
View MCP_simulation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View DxOCrawler.py
import re
import requests
import datetime as dt
from bs4 import BeautifulSoup
# Crawl DxOMark Mobile data
class DxOCrawler():
def __init__(self):
self.baseurl = "https://www.dxomark.com/category/mobile-reviews/page"
self.links = []
@naturale0
naturale0 / MyGeno.py
Last active May 20, 2017
Python class which reads and interprets 23andMe raw genotype data. Support searching your genotype and related traits at SNPedia.
View MyGeno.py
import pandas as pd
import requests
import json
import sys
import os
from bs4 import BeautifulSoup
from collections import OrderedDict
class Geno(object):
"""class to reads and interprets 23andMe raw genotype data."""
@naturale0
naturale0 / 2017 대선 후보 지지율 예측 (회귀).ipynb
Last active May 6, 2017
회귀 분석을 통한 2017 대선 지지율 예측
View 2017 대선 후보 지지율 예측 (회귀).ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@naturale0
naturale0 / stock_cralwer.py
Created May 6, 2017
네이버 금융에서 일별 종가를 읽어오는 클래스 (http://estenpark.tistory.com/353 참고 - 이걸 그대로 클래스로 구현함)
View stock_cralwer.py
## http://estenpark.tistory.com/353 참고 (거의 그대로 가져옴)
import urllib
import time
import sys
from urllib import urlopen
from bs4 import BeautifulSoup
class NaverStockCrawler(object):
"""네이버 금융에서 일별 종가를 읽어오는 클래스"""
@naturale0
naturale0 / 2017 대선 후보 지지율 예측.ipynb
Last active May 3, 2017
시계열 분석을 통한 2017 대선 후보 지지율 예측
View 2017 대선 후보 지지율 예측.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@naturale0
naturale0 / 2017 대선 지지층 분석.ipynb
Last active Apr 28, 2017
2017 대선 지지층 분석
View 2017 대선 지지층 분석.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@naturale0
naturale0 / KoPre2017.py
Last active Apr 27, 2017
2017 대한민국 대선 여론조사 - 네이버 여론조사를 크롤링, 그래프로 간단히 시각화하는 Python class
View KoPre2017.py
#coding=utf-8
import re
import requests
import StringIO
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm
import pandas as pd
import numpy as np
from bs4 import BeautifulSoup
View citation prediction.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.