question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ignore missing variables when concatenating datasets?

See original GitHub issue

Several 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:open
  • Created 8 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dcheriancommented, Jun 2, 2022

Yes that is correct

0reactions
zoj613commented, Nov 9, 2022

Any plans to support this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found