Hy4m / linkET

Everything is Linkable
145 stars 39 forks source link

How to deal with the dataframe with NA? #9

Closed B-1991-ing closed 1 year ago

B-1991-ing commented 1 year ago

Hi Houyun,

I want to see the correlation between two dataframe using linkET, but one dataframe has missing values - NA.

Should I move out the rows with NA? Or replace the NA using 0? What I am doing now is to replace the NA with 0, but not sure if it is right.

Could you give me some suggestions?

Best,

Bing

Hy4m commented 1 year ago

In my opinion, replacing the missing value with 0 is not appropriate because there are many other situations that can produce a missing value.

In the end, I don't think this is a good place to talk about it, so maybe you could ask it on stackoverflow or some similar forum.