<jupyter_start><jupyter_text>Quagga Mussel *Dreissena rostriformis bugensis*---<jupyter_code>%load_ext autoreload
%autoreload 2
import sys

import numpy as np
import pandas as pd

import flbs_ais.nas as nas<jupyter_output><empty_output><jupyter_text>Database Species Search ResultsThis doesn't work as the NAS database uses three names here. Got the ID from the CSV file instead.<jupyter_code>search_result = nas.species_search('', '')
search_string = nas.species_string(search_result)
print(search_string)<jupyter_output><empty_output><jupyter_text>--- API Query Dataframe for Quagga Mussel<jupyter_code>api_key = ""
with open("../tmp/api_key.txt", 'r') as file:
    api_key = file.readline()
api_df = nas.getdf(95, keep_columns=None, limit=-1, api_key=api_key)
print(f"Results: {len(api_df)}")
api_df.head()<jupyter_output>Results: 1305<jupyter_text>--- Most Common References for API Query Dataframe<jupyter_code>api_ref_count = nas.ref_counts(api_df)
print(nas.ref_string(api_ref_count, limit=5))<jupyter_output>--------
Most common reference 1

Source number:      1
Title:              Invader invaded: population dynamics of zebra mussels&nbsp;(<em>Dreissena polymorpha</em>) and quagga mussels (<em>Dreissena&nbsp;rostriformis bugensis</em>) in polymictic Oneida Lake, NY, USA&nbsp;(1992&ndash;2013)
Author:             Hetherington, A.L., <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <NAME>
Publisher:          
Publisher Location: 
Year:               2019
Reference Type:     Journal Article

Source number:      2
Title:              Lakewide zebra and quagga mussel summary, Oneida Lake, New York, 1992 to present
Author:             <NAME>.
Publisher:          Knowledge Network for Biocomplexity
Publisher Location: 
Year:               2019
Reference Type:     Database

Total Occurrences:  465
--------

--------
Most common reference 2

Total Occurrences:  328
--------

--------
Most common reference 3

Source number:      1
Title:              Midwest I[...]<jupyter_text>--- CSV File Dataframe for Quagga MusselNOTE: Edit the file path in the following code block<jupyter_code>csv_df = nas.process_csv_df("../tmp/NAS-Data-QuaggaMussel.csv")
print(f"Results: {len(csv_df)}")
csv_df.head()<jupyter_output>Results: 1305<jupyter_text>--- Most Common References for CSV File Dataframe<jupyter_code>csv_ref_count = nas.ref_counts(csv_df)
print(nas.ref_string(csv_ref_count, limit=5))<jupyter_output>--------
Most common reference 1

Source number:      1
Title:              Invader invaded: population dynamics of zebra mussels&nbsp;(<em>Dreissena polymorpha</em>) and quagga mussels (<em>Dreissena&nbsp;rostriformis bugensis</em>) in polymictic Oneida Lake, NY, USA&nbsp;(1992&ndash;2013)
Author:             <NAME>., <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <NAME>
Publisher:          nan
Publisher Location: nan
Year:               2019
Reference Type:     Journal Article

Source number:      2
Title:              Lakewide zebra and quagga mussel summary, Oneida Lake, New York, 1992 to present
Author:             <NAME>.
Publisher:          Knowledge Network for Biocomplexity
Publisher Location: nan
Year:               2019
Reference Type:     Database

Total Occurrences:  465
--------

--------
Most common reference 2

Total Occurrences:  328
--------

--------
Most common reference 3

Source number:      1
Title:              [...]
{'fraction_non_alphanumeric': 0.12095096582466568, 'fraction_numerical': 0.023179791976225855, 'mean_word_length': 3.488, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 44, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '575630', 'license': 'MIT', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1063, 'n_words': 303, 'path': 'notebooks/QuaggaMussel.ipynb', 'repo_name': 'randywf/flbs-invasive-species', 'size': '3462'}