ai-content-maker/.venv/Lib/site-packages/pandas/tests/arrays/categorical/conftest.py

16 lines
359 B
Python
Raw Normal View History

2024-05-03 04:18:51 +03:00
import pytest
from pandas import Categorical
@pytest.fixture(params=[True, False])
def allow_fill(request):
"""Boolean 'allow_fill' parameter for Categorical.take"""
return request.param
@pytest.fixture
def factor():
"""Fixture returning a Categorical object"""
return Categorical(["a", "b", "b", "a", "a", "c", "c", "c"], ordered=True)