home << dhlab reference

totals#

from dhlab import totals
totals(top_words=50000)[source]#

Get aggregated raw frequencies of all words in the National Library’s database.

Call the API BASE_URL endpoint /totals/{top_words}.

Parameters:

top_words (int) – The number of words to get total frequencies for.

Returns:

a pandas.DataFrame with the most frequent words.

Return type:

DataFrame