nous

1

votes
2

answer
15

views

Dropping duplicate values in a column

i have a frame like; df = pd.DataFrame({'America':["24,23,24,24","10","AA,AA, XY"]}) tried to convert it to a list, set etc.. but coudnt handle how can i drop the duplicates
nous
5

votes
2

answer
1.9k

views

when scanf returns 0 in c and just doesn't work

'when there is no successful assignments' i know that scanf returns 0 to indicate it, but is that the only thing that it does? this is my code: #include int main(void) { int val,x; x=scanf("%d",&val); if(x==1) printf("success!"); else{ printf("try again\n"); scanf("%d",&val); } return 0; } if i ent...
Nous Sa Smily
2

votes
2

answer
117

views

Multiplication of different subsets with different data in R

I have a large dataset, which I splitted up into subsets. For each subsets, I have to do the same calculations but with different numbers. Example: Main Table x a b c d A 1 2 4 5 A 4 5 1 7 A 3 5 6 2 B 4 5 2 9 B 3 5 2 8 C 4 2 5 2 C 1 9 6 9 C 1 2 3 4 C 6 3 6 2 Additional Table for A a b c d A 5 1 6 1...
nous.calc