Skip to content

Commit

Permalink
👽 Filter out pandas FutureWarning (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Mar 4, 2024
1 parent 069fc20 commit e1fc057
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mapply/mapply.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"""
from __future__ import annotations

import warnings
from functools import partial
from typing import Any, Callable

Expand All @@ -54,6 +55,13 @@
DEFAULT_MAX_CHUNKS_PER_WORKER = 8


warnings.filterwarnings(
action="ignore",
message=".*swapaxes",
category=FutureWarning,
)


def _choose_n_chunks(
shape: tuple[int, ...],
axis: int,
Expand Down

0 comments on commit e1fc057

Please sign in to comment.