pythonwarningspytestdaskfuture-warning

Strange warning using dask.dataframe to read csv


I am using dask dataframe module to read a csv.

In [3]: from dask import dataframe as dd                                                                               

In [4]: dd.read_csv("/file.csv", sep=",", dtype=str, encoding="utf-8", error_bad_lines=False, collection=True, blocksize=64e6) 

I used to this with no problem, but today a strange warning showed up:

   FutureWarning: The default value of auto_mkdir=True has been deprecated and will be changed to auto_mkdir=False by default in a future release.
      FutureWarning,

This didn't worried me until I realised it breaks my unit tests, because, when using this from console, it's simple a warning, but the tests set for my app have broken because of this.

Does anyone know the cause of this warning or how to get rid of it?


Solution

  • Auto-answering for documentation:

    filterwarnings =
        error
        ignore::UserWarning