mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-06-26 12:09:55 +02:00
🧹 Filter annoying UserWarning on every pandas import (on WSL)
This commit is contained in:
parent
5384e18ab5
commit
a20c979351
4 changed files with 25 additions and 4 deletions
|
@ -15,11 +15,15 @@ from collections import defaultdict
|
|||
from collections.abc import MutableMapping, Sequence
|
||||
|
||||
import click
|
||||
import pandas as pd
|
||||
from tqdm import tqdm
|
||||
|
||||
from .lib import convert_db_to_parquet, sorted_groupby, TagGroup, ns, flatten, insert_into_db, insert_into_db_multiple, current_columns_types
|
||||
|
||||
with warnings.catch_warnings():
|
||||
# Filter warnings on WSL
|
||||
if "Microsoft" in os.uname().release:
|
||||
warnings.simplefilter("ignore")
|
||||
import pandas as pd
|
||||
|
||||
|
||||
logger = logging.getLogger('mods4pandas')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue