From 85af58d5335408145379b103f4c7ea595d382840 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Mon, 27 May 2024 14:19:33 +0200 Subject: [PATCH] Refine comment --- audb/core/dependencies.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/audb/core/dependencies.py b/audb/core/dependencies.py index 9c8ef923..5c27139f 100644 --- a/audb/core/dependencies.py +++ b/audb/core/dependencies.py @@ -586,9 +586,10 @@ def _set_dtypes(df: pd.DataFrame) -> pd.DataFrame: with correct dtypes """ - # Check if we have an old cache, - # by checking the dtype of index, - # which changed to `object` in version 1.7.0 + # Check the dtype of index, + # to decide if we need to update dtypes, + # as dtype of index changed to `object` + # in version 1.7.0 of audb. if df.index.dtype != define.DEPEND_INDEX_DTYPE: df.index = df.index.astype(define.DEPEND_INDEX_DTYPE, copy=False) columns = define.DEPEND_FIELD_NAMES.values()