Created
June 14, 2019 09:56
-
-
Save andrewm4894/4712cb82dfe4247da687bb11feed1f99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this does not work | |
pipeline = { | |
{"resample" : {"type" : "trans", "name" : "resample", "kwargs" : {"rule" : "1min"}}} | |
} | |
pipeline | |
''' | |
--------------------------------------------------------------------------- | |
TypeError Traceback (most recent call last) | |
<ipython-input-10-7305ba79e664> in <module> | |
1 pipeline = { | |
----> 2 {"resample" : {"type" : "trans", "name" : "resample", "kwargs" : {"rule" : "1min"}}} | |
3 } | |
4 pipeline | |
TypeError: unhashable type: 'dict' | |
''' | |
# this does work | |
pipeline = dict() | |
pipeline["resample"] = {"type" : "trans", "name" : "resample", "kwargs" : {"rule" : "1min"}} | |
pipeline | |
''' | |
{'resample': {'type': 'trans', 'name': 'resample', 'kwargs': {'rule': '1min'}}} | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment