about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pyhegp/serialization.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pyhegp/serialization.py b/pyhegp/serialization.py
index b234a5b..799109e 100644
--- a/pyhegp/serialization.py
+++ b/pyhegp/serialization.py
@@ -70,7 +70,12 @@ def read_tsv(file):
     return pd.read_csv(file,
                        quoting=csv.QUOTE_NONE,
                        sep="\t",
-                       na_filter=False)
+                       na_filter=False,
+                       # Do not skip blank lines: for example, a data
+                       # frame with only spaces separated by tabs.
+                       # This is valid TSV, even though it is a weird
+                       # data file.
+                       skip_blank_lines=False)
 
 def read_genotype(file):
     df = read_tsv(file)