There is a list of dataset and I need to reshuffle them randomly then partition the dataset into n groups. I am using dictionary to store the list of dataset, but I am not sure how to partition items of a dictionary into n groups? What I can think of now is that to divide total of keys by n and get 1/n of keys from the dictionary to make n new dictionaries and then start the rest from there. Is this a practical method? Thanks a lot!
pythonlearning 0 Light Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
pythonlearning 0 Light Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
pythonlearning 0 Light Poster
pythonlearning 0 Light Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
pythonlearning 0 Light Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
pythonlearning 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.