This repository was archived by the owner on May 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515from __future__ import annotations
1616
17+ import warnings
18+
1719import numpy as np
1820import pandas as pd
1921import pyarrow as pa
2022import pytest
2123
2224import bigframes ._config
2325
26+ # Make sure SettingWithCopyWarning is ignored if it exists.
27+ # It was removed in pandas 3.0.
28+ if hasattr (pd .errors , "SettingWithCopyWarning" ):
29+ warnings .simplefilter ("ignore" , pd .errors .SettingWithCopyWarning )
30+
2431
2532@pytest .fixture (scope = "session" )
2633def polars_session_or_bpd ():
Original file line number Diff line number Diff line change 11[pytest]
22doctest_optionflags = NORMALIZE_WHITESPACE
3- filterwarnings =
4- ignore::pandas.errors.SettingWithCopyWarning
53addopts = " --import-mode=importlib"
You can’t perform that action at this time.
0 commit comments