Skip to content

Commit

Permalink
BUG: workaround for bug in pd.read_table
Browse files Browse the repository at this point in the history
delim_whitespace=True does not work
pandas-dev/pandas#36381
  • Loading branch information
mcocdawc committed Sep 15, 2020
1 parent b643810 commit 4fa3f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chemcoord/cartesian_coordinates/_cartesian_class_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def read_xyz(cls, buf, start_index=0, get_bonds=True,
"""
frame = pd.read_table(buf, skiprows=2, comment='#',
nrows=nrows,
delim_whitespace=True,
sep='\s+',
names=['atom', 'x', 'y', 'z'], engine=engine)

remove_digits = partial(re.sub, r'[0-9]+', '')
Expand Down

0 comments on commit 4fa3f4f

Please sign in to comment.