Skip to content

Instantly share code, notes, and snippets.

@mols3131d
mols3131d / Printer.py
Last active April 19, 2024 06:07
python3-common
import datetime
from typing import Literal
from rich.color import Color
from rich.console import Console, JustifyMethod
from rich.padding import Padding
from rich.panel import Panel
from rich.pretty import Pretty
from rich.rule import Rule
@mols3131d
mols3131d / requirements.txt
Last active March 28, 2024 06:21
python3-ds
numpy
pandas
scipy
statsmodels
matplotlib
seaborn
plotly
scikit-learn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mols3131d
mols3131d / datetime.ipynb
Last active April 12, 2024 06:22
python3
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 March 9, 2024 06:59
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 April 2, 2024 07:07
Pandas
"""
select_dtypes() 함수의 include 매개변수에 올 수 있는 것들은 다음과 같습니다.
"number": 숫자형 데이터 유형
"bool": 부울형 데이터 유형
"object": 오브젝트형 데이터 유형
"category": 카테고리형 데이터 유형
"datetime64[ns]": 날짜/시간 데이터 유형
"timedelta64[ns]": 시간 간격 데이터 유형
"string": 문자열 데이터 유형