1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-08-16 13:09:53 +02:00

🧹 Filter annoying UserWarning on every pandas import (on WSL)

This commit is contained in:
Mike Gerber 2025-06-11 17:20:28 +02:00
parent 5384e18ab5
commit a20c979351
4 changed files with 25 additions and 4 deletions

View file

@ -3,13 +3,18 @@ from __future__ import annotations
from itertools import groupby
import re
import warnings
import os
from typing import List, Sequence, MutableMapping, Dict
from collections import defaultdict
import pandas as pd
import numpy as np
from lxml import etree as ET
with warnings.catch_warnings():
# Filter warnings on WSL
if "Microsoft" in os.uname().release:
warnings.simplefilter("ignore")
import pandas as pd
__all__ = ["ns"]