Skip to content

Commit

Permalink
fixed read_csv call for deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovolpi committed Oct 30, 2024
1 parent a271fe1 commit 82fe293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quapy/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def download(id: int | None, group: str) -> dict:
y = df["NSP"].astype(int).values
elif group == "semeion":
with download_tmp_file("semeion", "semeion.data") as tmp:
df = pd.read_csv(tmp, header=None, delim_whitespace=True)
df = pd.read_csv(tmp, header=None, sep='\s+')
X = df.iloc[:, 0:256].astype(float).values
y = df[263].values # 263 stands for digit 8 (labels are one-hot vectors from col 256-266)
else:
Expand Down

0 comments on commit 82fe293

Please sign in to comment.