Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75da4a3

Browse files
committed
rm masked encoding encoder, as it's covered in the pandas, numpy, and datetime encoders
1 parent a028996 commit 75da4a3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

plotly/utils.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,6 @@ def sageJSONEncoder(self, obj):
147147
except:
148148
raise NotEncodable
149149

150-
def maskedNumbersEncoder(self, obj):
151-
"""This catches masked numbers which can't be serialized.
152-
153-
Pandas (and others) may use masked numbers to signify data that's
154-
not NaN, but also not valid in computations; something to be ignored.
155-
156-
"""
157-
import math
158-
try:
159-
if math.isnan(obj):
160-
return float('NaN')
161-
except:
162-
pass
163-
return None
164150
if obj in RR:
165151
return float(obj)
166152
elif obj in ZZ:

0 commit comments

Comments
 (0)