Range constraint requires two values
回答済みHello when I read my data from Excel and rewrite them to list , pandas makes them like this :
I1=[[3], [4]]
but I wanna them like this I1=[3, 4] to eliminate this error
What should I do to eliminate this error
My excel data 
my program to read this excel and write it to list is :
#Read initial Local stock from Excel
df=pd.read_excel("S1.xlsx")
b=df.drop(columns='Article',axis=1)
I1=b.values.tolist()
print(I1)
0
-
There might be an easier way, but this should work:
I1 = [s[0] for s in I1]
0
サインインしてコメントを残してください。
コメント
1件のコメント