Click here to Skip to main content
15,891,253 members

Comments by Jasmine L (Top 2 by date)

Jasmine L 24-Mar-22 15:59pm View    
When I:

for item in dataframe:
if float(item) > 100:
...

output:

0

Output needed:

entire data frame:
0 0 1 1 0 0
0 0 1 0 0 0
1 0 0 1 0 1

where:
0 = value less than
1 = value greater than

All cells are numerical
Jasmine L 24-Mar-22 4:57am View    
hm, that did not work either :/ I just need to map the entire dataset to 0 and 1 based on >=