Top "Missing-data" questions

For questions relating to missing data problems, which can involve special data structures, algorithms, statistical methods, modeling techniques, visualization, among other considerations.

Leaving values blank if not passed in str.format

I've run into a fairly simple issue that I can't come up with an elegant solution for. I'm creating a …

python string-formatting missing-data
Why does max() sometimes return nan and sometimes ignores it?

This question is motivated by an answer I gave a while ago. Let's say I have a dataframe like this …

python pandas replace missing-data
Missing values error in train() function Caret for trees

I'm new using R and I'm trying to build a decision tree. I've already used the package party for ctree …

r decision-tree missing-data r-caret rpart
Replacing NAs in R with nearest value

I'm looking for something similar to na.locf() in the zoo package, but instead of always using the previous non-NA …

r na missing-data
How to replace NA (missing values) in a data frame with neighbouring values

862 2006-05-19 6.241603 5.774208 863 2006-05-20 NA NA 864 2006-05-21 NA NA 865 2006-05-22 6.383929 5.906426 866 2006-05-23 6.782068 6.268758 867 2006-05-24 6.534616 6.013767 868 2006-05-25 6.370312 5.856366 869 2006-05-26 6.225175 5.781617 870 2006…

r missing-data imputation locf
Automatically join missing data gaps in Highcharts JS

I'm currently looking to implement Highcharts JS into my application, using months as the x-axis categories. However, I have gaps …

javascript highcharts missing-data
Fill missing dates by group

In my data, there exist observations for some IDs in some months and not for others, e.g. dat <…

r dplyr missing-data
Elasticsearch match phrase prefix not matching all terms

I am having an issue where when I use the match_phrase_prefix query in Elasticsearch, it is not returning …

elasticsearch match missing-data querying
Pandas rolling apply with missing data

I want to do a rolling computation on missing data. Sample Code: (For sake of simplicity I'm giving an example …

python pandas missing-data rolling-computation
Specify different types of missing values (NAs)

I'm interested to specify types of missing values. I have data that have different types of missing and I am …

r base missing-data missing-features