Skip to content

Commit 4432033

Browse files
committed
Add "N / A" to STR_NA_VALUES
This is a value that I just came across in some data that is in the spirit of the other NA value. I don't think this will be a false positive any more so than some of the other values in this list.
1 parent 23e592f commit 4432033

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pandas/_libs/parsers.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,6 +1378,7 @@ STR_NA_VALUES = {
13781378
"#N/A N/A",
13791379
"#N/A",
13801380
"N/A",
1381+
"N / A",
13811382
"n/a",
13821383
"NA",
13831384
"<NA>",

pandas/tests/io/parser/test_na_values.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def test_default_na_values(all_parsers):
119119
"-1.#QNAN",
120120
"#N/A",
121121
"N/A",
122+
"N / A",
122123
"n/a",
123124
"NA",
124125
"<NA>",

0 commit comments

Comments
 (0)