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

Add LongDataset. #2377

Closed
wants to merge 8 commits into from
Closed

Add LongDataset. #2377

wants to merge 8 commits into from

Conversation

jaheba
Copy link
Contributor

@jaheba jaheba commented Oct 17, 2022

Issue #2363 , if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

@jaheba jaheba marked this pull request as draft October 18, 2022 07:24
Copy link
Contributor

@lostella lostella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this PR have PandasDataset return a LongDataset then?

)

yield from dataset
self.unchecked = True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's smart

Comment on lines +377 to +378
if self.translator is not None:
dataset = Map(self.translator, dataset)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering whether this class is taking care of too much now: applying translator here interferes with applying column_as_start below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but the problem is that dataframe only have 1D columns, so we need a way to stack columns. One could of course do it themselves afterwards, but since this is a more lab-focused setup I think there is an argument for having it all in one place.

@jaheba jaheba added the BREAKING This is a breaking change (one of pr required labels) label Oct 21, 2022
@lostella lostella added the new feature (one of pr required labels) label Oct 24, 2022
freq: Optional[str] = None

assume_sorted: bool = False
translate: InitVar[Optional[dict]] = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s both translate and translator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING This is a breaking change (one of pr required labels) new feature (one of pr required labels)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants