Skip to content

Instantly share code, notes, and snippets.

@mols3131d
mols3131d / pydantic.ipynb
Last active May 10, 2024 08:03
python3-common
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mols3131d
mols3131d / Kaggle.py
Last active May 20, 2024 18:01
python3-ds
import os
from pathlib import Path
def set_kaggleAPI(
config_dir: str | Path = None,
username_and_key: dict | list[str, str] | tuple[str, str] = None,
) -> None:
"""Sets environment variables for Kaggle API usage.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mols3131d
mols3131d / run.py
Last active March 5, 2024 05:04
Selenium4
‎‎​
@mols3131d
mols3131d / go.Pie.py
Last active May 10, 2024 14:05
Plotly
import plotly.express as px
import plotly.graph_objs as go
from plotly.subplots import make_subplots
fig = make_subplots(
rows=1,
cols=3,
subplot_titles=("구독 유지 비율", "선호 난이도", "구독 유형"),
specs=[[{"type": "domain"}, {"type": "domain"}, {"type": "domain"}]],
)
@mols3131d
mols3131d / eda.py
Last active May 13, 2024 08:14
Pandas
"""
select_dtypes() 함수의 include 매개변수에 올 수 있는 것들은 다음과 같습니다.
"number": 숫자형 데이터 유형
"bool": 부울형 데이터 유형
"object": 오브젝트형 데이터 유형
"category": 카테고리형 데이터 유형
"datetime64[ns]": 날짜/시간 데이터 유형
"timedelta64[ns]": 시간 간격 데이터 유형
"string": 문자열 데이터 유형