Skip to content

Generate pseudo_id for practice #290

Answered by alexwalkerepi
SRW612 asked this question in Q&A
Discussion options

You must be logged in to vote

There's a couple of possible workarounds for this at the moment:

  1. A neat bit of Python that you can use to specify lots of categories in the return_expectations without having to write them all out:
return_expectations={"category": {"ratios": {c: 1/1000 for c in range(1,1001)}}}

This will give reproducible categories that are 1-1000. The unfortunate quirk with this is that the data type this would return would be categorical, whereas in the real data the practice ID would be an int. However, this is not an issue if you're using the CSV output format as that obscures the data types anyway. If you're using feather or dta output formats, you might need to convert to an int in the dummy data.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SRW612
Comment options

Answer selected by SRW612
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants