diff --git a/propti/data_structures.py b/propti/data_structures.py index cb9327a..66e7f57 100644 --- a/propti/data_structures.py +++ b/propti/data_structures.py @@ -447,6 +447,8 @@ def read_data(self, wd: os.path, target: str = 'model'): in_file = os.path.join(wd, ds.file_name) # Read data as Pandas DataFrame. data = pd.read_csv(in_file, header=ds.header_line) + # Get rid of unwanted spaces. + data = data.rename(columns=lambda x: x.strip()) # Get all header labels from the data frame. headers = list(data)