Skip to content

Commit

Permalink
Deprecation of delim_whitespace (pandas)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemieuxl committed Feb 12, 2024
1 parent 710b427 commit 5816cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyplink/pyplink.py
Expand Up @@ -231,7 +231,7 @@ def _get_seek_position(self, n):
def _read_bim(self):
"""Reads the BIM file."""
# Reading the BIM file and setting the values
bim = pd.read_csv(self.bim_filename, delim_whitespace=True,
bim = pd.read_csv(self.bim_filename, sep=r"\s+",
names=["chrom", "snp", "cm", "pos", "a1", "a2"],
dtype=dict(snp=str, a1=str, a2=str))

Expand Down Expand Up @@ -333,7 +333,7 @@ def get_duplicated_markers(self):
def _read_fam(self):
"""Reads the FAM file."""
# Reading the FAM file and setting the values
fam = pd.read_csv(self.fam_filename, delim_whitespace=True,
fam = pd.read_csv(self.fam_filename, sep=r"\s+",
names=["fid", "iid", "father", "mother", "gender",
"status"],
dtype=dict(fid=str, iid=str, father=str, mother=str))
Expand Down

0 comments on commit 5816cae

Please sign in to comment.