Dataframe - put a column as a variable

ساخت وبلاگ

Vote count: 0

I would appreciate if you could help me with this little problem. I have this dataframe:

> dxmale Var1 Freq
1 F20 1
2 F25 3
3 F31 1
4 F32 5
5 F33 9
6 F34 3
7 F41 3

The problem is I want the "Var1" column to be the variables, like if it was a table. I want this in order to merge this dataframe with other. I would like to obtain something like this:

> dxmale F20 F25 F31 F32 F33 F34 F41 1 3 1 5 9 3 3

Thanks for your help

asked 52 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 362 تاريخ : شنبه 29 اسفند 1394 ساعت: 22:57