Initial commit: 首次建仓,建立目录结构

This commit is contained in:
FXY
2026-06-11 23:49:54 +08:00
commit 4038a476b5
9396 changed files with 2372905 additions and 0 deletions

View File

@ -0,0 +1,39 @@
import numpy as np
import pytest
from pandas import (
DataFrame,
to_datetime,
)
@pytest.fixture(autouse=True)
def autouse_mpl_cleanup(mpl_cleanup):
pass
@pytest.fixture
def hist_df():
n = 50
rng = np.random.default_rng(10)
gender = rng.choice(["Male", "Female"], size=n)
classroom = rng.choice(["A", "B", "C"], size=n)
hist_df = DataFrame(
{
"gender": gender,
"classroom": classroom,
"height": rng.normal(66, 4, size=n),
"weight": rng.normal(161, 32, size=n),
"category": rng.integers(4, size=n),
"datetime": to_datetime(
rng.integers(
812419200000000000,
819331200000000000,
size=n,
dtype=np.int64,
)
),
}
)
return hist_df