If you imported NumPy already for other purposes then there is no need to import other libraries like pathlib
, os
, paths
, etc.
import numpy as npnp.DataSource().exists("path/to/your/file")
This will return true or false based on its existence.
If you imported NumPy already for other purposes then there is no need to import other libraries like pathlib
, os
, paths
, etc.
import numpy as npnp.DataSource().exists("path/to/your/file")
This will return true or false based on its existence.