Last active
June 29, 2022 18:27
-
-
Save khuyentran1401/b8cc93bef385137025ea4f20c7ae0c9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@task | |
def create_dataframe_from_dict(data: dict): | |
return pd.DataFrame(data) | |
@task | |
def remove_duplicates(data: pd.DataFrame, config: DictConfig): | |
"""Remove the duplicates of a repository""" | |
subset = list(config.relevant_info) | |
subset.remove("topics") | |
return data.drop_duplicates(subset=subset).reset_index(drop=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment