There was an error while loading. Please reload this page.
1 parent e6b3b69 commit feb6b0cCopy full SHA for feb6b0c
wfdb/io/convert/csv.py
@@ -310,7 +310,12 @@ def csv_to_wfdb(
310
# Check if signal names are valid and set defaults
311
if not sig_name:
312
if header:
313
- sig_name = df_CSV.columns.to_list()
+ try:
314
+ sig_name = df_CSV.columns.to_list()
315
+ except AttributeError:
316
+ # to_list() was introduced in Pandas v0.24.0
317
+ # https://pandas.pydata.org/pandas-docs/stable/whatsnew/v0.24.0.html#other-api-changes
318
+ sig_name = df_CSV.columns.tolist()
319
if any(map(str.isdigit, sig_name)):
320
print(
321
"WARNING: One or more of your signal names are numbers, this "
0 commit comments