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 c016566 commit cdbd103Copy full SHA for cdbd103
larray/inout/pandas.py
@@ -7,7 +7,14 @@
7
from larray.core.axis import Axis, AxisCollection
8
from larray.core.constants import nan
9
from larray.util.misc import unique
10
-from larray.util.compat import decode
+
11
12
+def decode(s, encoding='utf-8', errors='strict'):
13
+ if isinstance(s, bytes):
14
+ return s.decode(encoding, errors)
15
+ else:
16
+ assert s is None or isinstance(s, str), "unexpected " + str(type(s))
17
+ return s
18
19
20
def parse(s):
larray/util/compat.py
0 commit comments