Ignore missing variables when concatenating datasets?
See original GitHub issueSeveral users (@raj-kesavan, @richardotis, now myself) have wondered about how to concatenate xray Datasets with different variables.
With the current xray.concat
, you need to awkwardly create dummy variables filled with NaN
in datasets that don’t have them (or drop mismatched variables entirely). Neither of these are great options – concat
should have an option (the default?) to take care of this for the user.
This would also be more consistent with pd.concat
, which takes a more relaxed approach to matching dataframes with different variables (it does an outer join).
Issue Analytics
- State:
- Created 8 years ago
- Reactions:4
- Comments:7 (2 by maintainers)
Top Results From Across the Web
concatenate non missing values - SAS Support Communities
I want to concatenate all this non missing values only. ... Provide input data in the form of a dataset, the actual results...
Read more >Merging with dates, ignoring missing values. - Statalist
Hello, I am trying to merge two datasets, one with stock price, so per company an observation per business day.
Read more >Concatenate non missing values - narkive
I am trying to concatenate 6 different variables seperated by a comma in between them. ... It concatenates the missing values also, which...
Read more >Stata Tip 109: How to Combine Variables with Missing Values
A common problem in data management is combining two or more variables with ... dataset, and there were missing values on moxResp if...
Read more >st: Re: How to merge datasets when there are missing values ...
st: Re: How to merge datasets when there are missing values in the ... two ID variables, then try concatenating ID1 and ID2...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes that is correct
Any plans to support this?