Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问把dataframe赋值给多个变量怎么做的,意思是每列赋值给一个变量,可以用类似1.1的方式吗 #352

Open
hahashuo opened this issue Jun 30, 2021 · 0 comments

Comments

@hahashuo
Copy link

比如这样的代码

import numpy as np
import pandas as pd
X = pd.Dataframe(np.random.rand(4,2))
a,b = X
#这里的输出就是a = 0, b = 1为什么呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant