We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 342f087 + 9df6442 commit a5edd1cCopy full SHA for a5edd1c
aiutil/shell.py
@@ -80,7 +80,7 @@ def _to_frame_space(
80
if header is None, then default header is used for the data frame.
81
:return: A pandas DataFrame.
82
"""
83
- data = [re.split(split, line.strip()) for line in lines if line.strip() != ""]
+ data = [re.split(split, line.strip()) for line in lines if line.strip()]
84
if isinstance(header, int):
85
columns = [re.sub(r"\s+", "_", col.lower()) for col in data[header]]
86
data = (row for idx, row in enumerate(data) if idx != header)
0 commit comments