From b932623a8de265c0d65375011112498a8644e543 Mon Sep 17 00:00:00 2001 From: Daniele Rapetti <5535617+Iximiel@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:54:34 +0100 Subject: [PATCH] fixed deprecation warning from pandas --- python/plumed.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plumed.pyx b/python/plumed.pyx index ad40c9b6e1..e54b76d1e4 100644 --- a/python/plumed.pyx +++ b/python/plumed.pyx @@ -551,7 +551,7 @@ def read_as_pandas(file_or_path,enable_constants=True,enable_conversion=True,ker # read the rest of the file # notice that if chunksize was provided the result will be an iterable object - df=pd.read_csv(file_or_path, delim_whitespace=True, comment="#", header=None,names=columns, + df=pd.read_csv(file_or_path, sep='\s+', comment="#", header=None,names=columns, usecols=usecols,skiprows=skiprows,nrows=nrows,chunksize=chunksize,index_col=index_col) if chunksize is None: