Skip to content

Instantly share code, notes, and snippets.

@mpilosov
Created January 27, 2018 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpilosov/55df5906715ee5e8c7fe4dbf8d4a8513 to your computer and use it in GitHub Desktop.
Save mpilosov/55df5906715ee5e8c7fe4dbf8d4a8513 to your computer and use it in GitHub Desktop.
keywording in python
import scipy.stats as sstats
def ev(*args, **kwds):
return sstats.norm(*args, **kwds)
kw = {'loc':2}
def kwrap(kwds):
return ev(**kwds)
print(kwrap(kw).rvs(3))
@mpilosov
Copy link
Author

can try kw={'shape':2, 'loc':3}, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment