<jupyter_start><jupyter_text>Quandl - Get data from API **Tags:** quandl marketdata opendata **Author:** [<NAME>](https://www.linkedin.com/in/ACoAAAJHE7sB5OxuKHuzguZ9L6lfDHqw--cdnJg/)  Input  Install packages<jupyter_code>!pip install quandl<jupyter_output><empty_output><jupyter_text>Import libraries<jupyter_code>import quandl
import matplotlib.pyplot as plt<jupyter_output><empty_output><jupyter_text>Model  Get the data<jupyter_code>data = quandl.get('EIA/PET_RWTC_D')<jupyter_output><empty_output><jupyter_text>Output  Show dataframe<jupyter_code>data<jupyter_output><empty_output><jupyter_text>Show the graph<jupyter_code>%matplotlib inline
data.plot()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11918604651162791, 'fraction_numerical': 0.005813953488372093, 'mean_word_length': 12.25, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '130601', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 281, 'n_tokens_neox': 273, 'n_words': 32, 'path': 'Quandl/Quandl_Get_data_from_API.ipynb', 'repo_name': 'srini047/awesome-notebooks', 'size': '696'}