0
df1=pd.read_excel(xls, 'Sheet 1', keep_default_na=False)

Hello. When I try to add this keep default parameter to my read excel function I get the following "Future warning". Is there a way to fix this and is this something to be concerned about?

FutureWarning: Inferring datetime64[ns] from data containing strings 
is deprecated and will be removed in a future version. 
To retain the old behavior explicitly pass Series(data, dtype=datetime64[ns])
furas
  • 119,752
  • 10
  • 94
  • 135
  • 1
    If the warning tells you a feature will be removed, I think you should feel concerned and try to learn the alternative (described in the warning) to prevent having your code break in subsequent releases. That's why suppressing warnings might not be the best idea. – mozway Apr 01 '22 at 03:31

0 Answers0