mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-06-25 19:49:54 +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
|
@ -1,5 +1,12 @@
|
|||
import pandas as pd
|
||||
import re
|
||||
import warnings
|
||||
import os
|
||||
|
||||
with warnings.catch_warnings():
|
||||
# Filter warnings on WSL
|
||||
if "Microsoft" in os.uname().release:
|
||||
warnings.simplefilter("ignore")
|
||||
import pandas as pd
|
||||
|
||||
|
||||
mods_info = pd.read_parquet("mods_info_df.parquet")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue