srs_metadata_cleaning.py
def merge_csv_files(filename_1, filename_2):
    """
    The following Stack Overflow page was helpful in writing this function:
    "Merging two CSV files using Python,"
    https://stackoverflow.com/questions/16265831/merging-two-csv-files-using-python
    (accessed October 28, 2020)

    Merges CSV files of curated metadata records and
    volume/edition check values on shared URI strings.

    Parameters
    ----------
    filename_1: string

    filename_2: string

    Returns
    ----------
    final_output_metadata: CSV
        A CSV file merging the two input CSV files
        on the URI field.
    """

    curated_metadata_records = pd.read_csv(filename_1)
    sifting_responses = pd.read_csv(filename_2)
    merged = curated_metadata_records.merge(sifting_responses, on="uri")
    final_output_metadata = merged.to_csv("python_FINAL_output_metadata.csv", index=False)

    return final_output_metadata

    The following Stack Overflow page was helpful in writing this function:
    "Merging two CSV files using Python,"
    https://stackoverflow.com/questions/16265831/merging-two-csv-files-using-python
    (accessed October 28, 2020)

    Merges CSV files of curated metadata records and
    volume/edition check values on shared URI strings.

    Parameters
    ----------
    filename_1: string

    filename_2: string

    Returns
    ----------
    final_output_metadata: CSV
        A CSV file merging the two input CSV files
        on the URI field.
    


Merges CSV files of curated metadata records and
volume/edition check values on shared URI strings.
Merges CSV files of curated metadata records and volume / edition check values on shared URI strings .
def merge_csv_files(filename_1, filename_2):
    curated_metadata_records = pd.read_csv(filename_1)
    sifting_responses = pd.read_csv(filename_2)
    merged = curated_metadata_records.merge(sifting_responses, on="uri")
    final_output_metadata = merged.to_csv("python_FINAL_output_metadata.csv", index=False)
    return final_output_metadata
def merge_csv_files ( filename_1 , filename_2 ) : curated_metadata_records = pd . read_csv ( filename_1 ) sifting_responses = pd . read_csv ( filename_2 ) merged = curated_metadata_records . merge ( sifting_responses , on = "uri" ) final_output_metadata = merged . to_csv ( "python_FINAL_output_metadata.csv" , index = False ) return final_output_metadata
The following Stack Overflow page was helpful in writing this function:
"Merging two CSV files using Python,"
https://stackoverflow.com/questions/16265831/merging-two-csv-files-using-python
(accessed October 28, 2020)
The following Stack Overflow page was helpful in writing this function : " Merging two CSV files using Python " https : // stackoverflow . com / questions / 16265831 / merging - two - csv - files - using - python ( accessed October 28 2020 )
"""
    The following Stack Overflow page was helpful in writing this function:
    "Merging two CSV files using Python,"
    https://stackoverflow.com/questions/16265831/merging-two-csv-files-using-python
    (accessed October 28, 2020)

    Merges CSV files of curated metadata records and
    volume/edition check values on shared URI strings.

    Parameters
    ----------
    filename_1: string

    filename_2: string

    Returns
    ----------
    final_output_metadata: CSV
        A CSV file merging the two input CSV files
        on the URI field.
    """
filename_1
None
filename_2
None
Returns

None
----------

None
final_output_metadata
A CSV file merging the two input CSV files
on the URI field.
A CSV file merging the two input CSV files on the URI field .