Skip to content

Conversation

@tgrandje
Copy link
Collaborator

Fix #285


df = _clean_data(
data_final.copy(),
data_final.copy() if data_final is not None else pd.DataFrame(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if it would not be clearer/cleaner to have if data_final is None: return pd.DataFrame() before line 255... @tgrandje what do you think?

Copy link
Collaborator Author

@tgrandje tgrandje Dec 11, 2025

Choose a reason for hiding this comment

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

I'm not sure of this, but in that case we should return a SireneDataFrame, not a pandas Dataframe. What do you prefer ?

Copy link
Collaborator

@tfardet tfardet Dec 11, 2025

Choose a reason for hiding this comment

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

then let's go for the empty SireneDataFrame before line 255 if you don't mind :)

@tfardet
Copy link
Collaborator

tfardet commented Dec 15, 2025

@tgrandje if you have time, could you pull the new head into it and apply the small changes we discussed?

@tfardet tfardet merged commit 2efeb21 into master Dec 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

search_sirene throws AttributeError when result set is empty

3 participants