clean-jordan-76106
09/16/2024, 10:55 AMorange-terabyte-33302
09/16/2024, 10:55 AMorange-terabyte-33302
09/16/2024, 10:55 AMclean-jordan-76106
09/16/2024, 11:05 AMorange-terabyte-33302
09/16/2024, 11:05 AMorange-terabyte-33302
09/16/2024, 11:05 AMclean-jordan-76106
09/16/2024, 11:08 AMclean-jordan-76106
09/16/2024, 11:08 AMorange-terabyte-33302
09/16/2024, 11:09 AMorange-terabyte-33302
09/16/2024, 11:09 AMpython attributes = { 'id': "123", 'loggedIn': True, 'age': 21.5, 'tags': ["tag1", "tag2"], 'account': { 'age': 90 } } # Pass into constructor gb = GrowthBook(attributes = attributes) # Or set later gb.set_attributes(attributes)
[^1^] However, GrowthBook's SDKs currently only support random assignment of users to variations[^2^]. They do not support stratified sampling or cluster sampling, which would be required to ensure a certain percentage of a specific user group in each variation[^2^]. If you want to implement such a sampling strategy, you would need to do it outside of GrowthBook and then pass the assignment data into GrowthBook for analysis[^2^]. [^1^]: [Source](https://docs.growthbook.io/lib/python#attributes) [^2^]: [Source](https://linen.growthbook.io/t/2683978/hi-again-quick-question-is-there-any-way-to-stratify-the-ran)clean-jordan-76106
09/18/2024, 7:59 AMclean-jordan-76106
09/18/2024, 8:00 AM