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 country_code_in filter #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nicostombros
Copy link

No description provided.

row_usa = df[df.is_country & (df.name == 'USA')].iloc[0]
row_usa['name'] = 'US'
df = pd.concat([df, pd.DataFrame.from_records([row_usa])])
if not self.country_code_in or "US" in self.country_code_in:
Copy link
Author

@nicostombros nicostombros Feb 12, 2024

Choose a reason for hiding this comment

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

No need for this step if US is not required by the country_code_in list

@nicostombros nicostombros changed the title Add country_code_in filter Add country_code_in filter Feb 12, 2024
@nicostombros
Copy link
Author

@mar-muel Any improvements you think should be made on this?

@nicostombros
Copy link
Author

Would be great to have this merged or correspond on what needs to change

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.

1 participant