Skip to content

Commit f3d633d

Browse files
committed
Use df.tolist(), not df.to_list().
1 parent feb6b0c commit f3d633d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

wfdb/io/convert/csv.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,7 @@ def csv_to_wfdb(
310310
# Check if signal names are valid and set defaults
311311
if not sig_name:
312312
if header:
313-
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()
313+
sig_name = df_CSV.columns.tolist()
319314
if any(map(str.isdigit, sig_name)):
320315
print(
321316
"WARNING: One or more of your signal names are numbers, this "

0 commit comments

Comments
 (0)