diff --git a/webscrape_icd.py.patch b/webscrape_icd.py.patch deleted file mode 100644 index 5e0a4ad..0000000 --- a/webscrape_icd.py.patch +++ /dev/null @@ -1,51 +0,0 @@ -# Patch generated by Pyment v0.3.3 - ---- a/webscrape_icd.py -+++ b/webscrape_icd.py -@@ -8,28 +8,26 @@ - - - def webscrape_icd(icd_version="ICD10", year=None, quiet=False): -- """ -- Scrapes the Centers for Disease Control and Prevention (CDC) website to retrieve International Classification of Diseases -- (ICD) codes and descriptions. -+ """Scrapes the Centers for Disease Control and Prevention (CDC) website to retrieve International Classification of Diseases -+ (ICD) codes and descriptions. - -- Args: -- icd_version (str): The version of ICD codes to retrieve. Default is 'ICD10'. -- year (int): The year for which to retrieve the ICD codes. This argument is optional for ICD10, but required for -- ICD9. If not provided, the current year will be used. -- quiet (bool): If True, suppresses output of information messages. Default is False. -+ :param icd_version: The version of ICD codes to retrieve. Default is 'ICD10'. -+ :type icd_version: str -+ :param year: The year for which to retrieve the ICD codes. This argument is optional for ICD10, but required for -+ ICD9. If not provided, the current year will be used. (Default value = None) -+ :type year: int -+ :param quiet: If True, suppresses output of information messages. Default is False. -+ :type quiet: bool -+ :returns: A DataFrame containing the ICD codes and descriptions. -+ :rtype: pd.DataFrame -+ :raises ValueError: If the `icd_version` argument is not 'ICD9' or 'ICD10'. -+ :raises ValueError: If the `year` argument is provided for ICD9. -+ :raises ValueError: If the `year` argument is not within the range of supported ICD-10 code sets (2019 to current year + 1). -+ :raises ValueError: If no ICD10 codes are found for the specified year. -+ :raises ValueError: If the code description file is not available for the current year. -+ Examples: - -- Returns: -- pd.DataFrame: A DataFrame containing the ICD codes and descriptions. -- -- Raises: -- ValueError: If the `icd_version` argument is not 'ICD9' or 'ICD10'. -- ValueError: If the `year` argument is provided for ICD9. -- ValueError: If the `year` argument is not within the range of supported ICD-10 code sets (2019 to current year + 1). -- ValueError: If no ICD10 codes are found for the specified year. -- ValueError: If the code description file is not available for the current year. -- -- Examples: -- >>> webscrape_icd() -+ >>> webscrape_icd() - >>> webscrape_icd(icd_version="ICD9", year=2015) - >>> webscrape_icd(icd_version="ICD10", year=2022, quiet=True) - """