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 522df01 commit e9153d9Copy full SHA for e9153d9
pandas/compat/__init__.py
@@ -36,6 +36,7 @@
36
from unicodedata import east_asian_width
37
import struct
38
import inspect
39
+from collections import namedtuple
40
41
PY2 = sys.version_info[0] == 2
42
PY3 = (sys.version_info[0] >= 3)
@@ -70,8 +71,9 @@ def str_to_bytes(s, encoding=None):
70
71
def bytes_to_str(b, encoding=None):
72
return b.decode(encoding or 'utf-8')
73
74
+ # The signature version below is directly copied from Django,
75
+ # https://github.com/django/django/pull/4846
76
def signature(f):
- from collections import namedtuple
77
sig = inspect.signature(f)
78
args = [
79
p.name for p in sig.parameters.values()
0 commit comments