Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

new Python 3.7 install causes collections DeprecationWarning: [duplicate]

I keep getting this :

DeprecationWarning: integer argument expected, got float

How do I make this message go away? Is there a way to avoid warnings in Python?

like image 590
Mohammed Avatar asked Nov 18 '22 04:11

Mohammed


1 Answers

You should just fix your code but just in case,

import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning) 
like image 95
ismail Avatar answered Feb 07 '23 15:02

ismail