Skip to content

Commit 686e5b8

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 686e5b8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
import numpy as np
99
import pytest
1010

11-
from pandas._libs.parsers import STR_NA_VALUES
12-
11+
import pandas._testing as tm
1312
from pandas import (
1413
DataFrame,
1514
Index,
1615
MultiIndex,
1716
)
18-
import pandas._testing as tm
17+
from pandas._libs.parsers import STR_NA_VALUES
1918

2019
pytestmark = pytest.mark.filterwarnings(
2120
"ignore:Passing a BlockManager to DataFrame:DeprecationWarning"
@@ -119,6 +118,7 @@ def test_default_na_values(all_parsers):
119118
"-1.#QNAN",
120119
"#N/A",
121120
"N/A",
121+
"N / A",
122122
"n/a",
123123
"NA",
124124
"<NA>",

0 commit comments

Comments
 (0)