Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop nans for datasets #19

Open
MerlinSmiles opened this issue Jun 1, 2016 · 0 comments
Open

drop nans for datasets #19

MerlinSmiles opened this issue Jun 1, 2016 · 0 comments
Labels
enhancement New feature or request

Comments

@MerlinSmiles
Copy link

MerlinSmiles commented Jun 1, 2016

I just made a new issue to rephrase microsoft/Qcodes#208 to a feature request

When loading an experiment file, that was not written to the end, i.e. by aborting a measurement, the missing values from the original intended sizes are just filled with nan's.

It would be nice to have a dropna function like in pandas that removes all dataset rows at the end of the dataset which are filled with nans, maybe also all colums that are nans only:

DataSet.dropna(axis=0, how='all') #removes all columns with nans-only or setpoints-only
DataSet.dropna(axis=1, how='all') #removes all rows that have nans-only

including the inplace feature that updates the dataset file, and the snapshot arrays.

Even though this discusses the DataSet it should also be possible for a single DataArray :)

@MerlinSmiles MerlinSmiles added the enhancement New feature or request label Jun 1, 2016
@jenshnielsen jenshnielsen transferred this issue from microsoft/Qcodes Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant