Skip to content

Commit a5edd1c

Browse files
authored
Merge pull request #389 from legendu-net/dclong-patch-1
Update shell.py
2 parents 342f087 + 9df6442 commit a5edd1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiutil/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _to_frame_space(
8080
if header is None, then default header is used for the data frame.
8181
:return: A pandas DataFrame.
8282
"""
83-
data = [re.split(split, line.strip()) for line in lines if line.strip() != ""]
83+
data = [re.split(split, line.strip()) for line in lines if line.strip()]
8484
if isinstance(header, int):
8585
columns = [re.sub(r"\s+", "_", col.lower()) for col in data[header]]
8686
data = (row for idx, row in enumerate(data) if idx != header)

0 commit comments

Comments
 (0)