Skip to content

Conversation

@twoertwein
Copy link
Member

and remove some old warnings.

Comment on lines 52 to 54
def getSeriesData() -> dict[str, pd.Series[float]]:
return {key: pd.Series([1.0, 2.0]) for key in ("A", "B", "C", "D")}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This got removed in the pandas dev branch, but I'd like to put back in here the version that was there:

_N = 30 _K = 4 def getCols(k) -> str: return string.ascii_uppercase[:k] def getSeriesData() -> dict[str, Series]: index = makeStringIndex(_N) return { c: pd.Series(np.random.default_rng(i).standard_normal(_N), index=index) for i, c in enumerate(getCols(_K)) }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the function as it was in pandas but I inlined unused kwargs in two of the helper functions (makeStringIndex and rands_array).

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @twoertwein

@Dr-Irv Dr-Irv merged commit a950dbd into pandas-dev:main Dec 12, 2023
@jonashaag
Copy link

This removed is_categorical_dtype :(

@twoertwein
Copy link
Member Author

This removed is_categorical_dtype :(

Pandas 2.1 recommends isinstance(obj.dtype, pd.CategoricalDtype) https://pandas.pydata.org/docs/dev/whatsnew/v2.1.0.html

@twoertwein twoertwein deleted the ci branch February 10, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants