I have a an empty dataframe say:
| (index) | prevelance |frequency | | -------- | -------------|------------| | 12 | NaN |NaN | | 13 | NaN |NaN | | 14 | NaN |NaN |
and an array:
num -- criteria -- count
prevalence 3
frequency 4
prevelance 5
frequency 2
prevelance 6
frequency 7
(grouped by num)
I want to fill in the Dataframe with the prevalence and frequency values of the array, where the array header num - matches data-frame index
helping hands appreciated.
2.1m questions
2.1m answers
60 comments
57.0k users