Skip to content

Instantly share code, notes, and snippets.

Avatar

Hyungyong Kim yong27

View GitHub Profile
@yong27
yong27 / apply_df_by_multiprocessing.py
Last active Mar 17, 2022
pandas DataFrame apply multiprocessing
View apply_df_by_multiprocessing.py
import multiprocessing
import pandas as pd
import numpy as np
def _apply_df(args):
df, func, kwargs = args
return df.apply(func, **kwargs)
def apply_by_multiprocessing(df, func, **kwargs):
workers = kwargs.pop('workers')
@yong27
yong27 / geo_downloader.py
Last active May 19, 2020
GEO file downloader from query search result CSV
View geo_downloader.py
# -*- coding:utf-8 -*-
"""
GEO file downloader
Requirements
* beautifulsoup4 (pip install lxml beautifulsoup4)
* wget
Usage
1. get CSV file in the GEO browse page.
@yong27
yong27 / COVID19-analysis-0306.ipynb
Created Mar 6, 2020
코로나바이러스감염증-19 감염현황 데이터 분석 (03-06 00:00 현재)
View COVID19-analysis-0306.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yong27
yong27 / COVID19-analysis-0305.ipynb
Created Mar 5, 2020
코로나바이러스감염증-19 감염현황 데이터 분석 (03-05 00:00 현재)
View COVID19-analysis-0305.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yong27
yong27 / COVID19-analysis-0304.ipynb
Last active Mar 4, 2020
코로나바이러스감염증-19 감염현황 데이터 분석 (03-04 00:00 현재)
View COVID19-analysis-0304.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yong27
yong27 / COVID19-analysis-0303.ipynb
Created Mar 3, 2020
코로나바이러스감염증-19 감염현황 데이터 분석 (03-03 00:00 현재)
View COVID19-analysis-0303.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yong27
yong27 / COVID19-analysis-0301.ipynb
Created Mar 1, 2020
코로나바이러스감염증-19 감염현황 데이터 분석 (03-01 16:00 현재)
View COVID19-analysis-0301.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yong27
yong27 / COVID19-analysis-0229.ipynb
Created Feb 29, 2020
코로나바이러스감염증-19 감염현황 데이터 분석 (02-29 16:00 현재)
View COVID19-analysis-0229.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View make_ten.py
"""
오늘은 8, 7, 3, 4로 10을 만들어 봅시다!
존재하는 모든 연산을 허용합니다. 단, 숫자 붙이기(ex. 1과 5를 붙여 15를 만드는 것 등)는 허용하지 않습니다. 각 숫자는 한 번씩만 사용합시다.
https://twitter.com/MathQ_kr/status/882781179849482240
"""
from itertools import permutations, product
numbers = 7, 8, 3, 4
View gist:6a9db652ed13f371cfdb3bdc4e546e82
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 1KG VCF analysis\n",
"\n",
"1KG VCF 파일의 일부 (22번 염색체에서 5천개 변이 추철)"
]