Getting Size Error When Putting Dictionary Values In One Way ANOVA Method

  Kiến thức lập trình

When I try to put the values of my dictionary into the SciPy f_oneway function it gives me an error saying that input is too short (must be greater than 1), but the length of it is 3 so it should be fine. I know I can just input the values individually separated by commas using the key, but I want this to work for unknown keys/dictionary lengths. Is there something specific I have to do or am I going about this completely wrong?

x = {'a' : [1,2,3], 'b' : [4,5,6], 'c' : [7,8,9]}
for a in x.values():
[1, 2, 3]
[4, 5, 6]
[7, 8, 9]
TypeError: at least two inputs are required; got 1.

New contributor

Cameron Kranz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.