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.
1 parent ceeb146 commit 290e576Copy full SHA for 290e576
src/pugnlp/constants.py
@@ -16,6 +16,7 @@
16
from collections import Mapping, OrderedDict
17
18
import pandas as pd
19
+import numpy as np
20
21
from decimal import Decimal
22
@@ -84,8 +85,6 @@
84
85
}
86
87
-np = pd.np
88
-
89
tld_iana = pd.read_csv(os.path.join(DATA_PATH, 'tlds-from-iana.csv'), encoding='utf8')
90
tld_iana = OrderedDict(sorted(zip((tld.strip().lstrip('.') for tld in tld_iana.domain),
91
[(sponsor.strip(), -1) for sponsor in tld_iana.sponsor]),
@@ -164,8 +163,8 @@
164
163
MAX_DATETIME = MAX_TIMESTAMP.to_pydatetime()
165
MIN_DATETIME64 = MIN_TIMESTAMP.to_datetime64()
166
MAX_DATETIME64 = MAX_TIMESTAMP.to_datetime64()
167
-INF = pd.np.inf
168
-NAN = pd.np.nan
+INF = np.inf
+NAN = np.nan
169
NAT = pd.NaT
170
171
0 commit comments