Skip to content

Commit 290e576

Browse files
author
Hobson Lane
committed
deprecated pd.np
1 parent ceeb146 commit 290e576

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pugnlp/constants.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from collections import Mapping, OrderedDict
1717

1818
import pandas as pd
19+
import numpy as np
1920

2021
from decimal import Decimal
2122

@@ -84,8 +85,6 @@
8485
}
8586

8687

87-
np = pd.np
88-
8988
tld_iana = pd.read_csv(os.path.join(DATA_PATH, 'tlds-from-iana.csv'), encoding='utf8')
9089
tld_iana = OrderedDict(sorted(zip((tld.strip().lstrip('.') for tld in tld_iana.domain),
9190
[(sponsor.strip(), -1) for sponsor in tld_iana.sponsor]),
@@ -164,8 +163,8 @@
164163
MAX_DATETIME = MAX_TIMESTAMP.to_pydatetime()
165164
MIN_DATETIME64 = MIN_TIMESTAMP.to_datetime64()
166165
MAX_DATETIME64 = MAX_TIMESTAMP.to_datetime64()
167-
INF = pd.np.inf
168-
NAN = pd.np.nan
166+
INF = np.inf
167+
NAN = np.nan
169168
NAT = pd.NaT
170169

171170

0 commit comments

Comments
 (0)