.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/getdata/get_1_aqsno2.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_getdata_get_1_aqsno2.py: Get DataFrame for AQS ozone =========================== Shows how to get AQS observations as a Pandas DataFrame. Replace aqs.ozone with airnow.ozone to get near-real-time data. .. GENERATED FROM PYTHON SOURCE LINES 8-19 .. code-block:: default import pyrsig # sphinx_gallery_thumbnail_path = '_static/aqsozone.png' rsigapi = pyrsig.RsigApi(bdate='2022-03-01') print([k for k in rsigapi.keys() if 'ozone' in k]) # ['airnow.ozone', 'airnow2.ozone', 'aqs.ozone', 'aqs.ozone_8hour_average', 'aqs.ozone_daily_8hour_maximum', 'pandora.ozone'] df = rsigapi.to_dataframe('aqs.ozone') print(df.shape, *df.columns) # (26760, 6) Timestamp(UTC) LONGITUDE(deg) LATITUDE(deg) STATION(-) ozone(ppb) SITE_NAME .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_getdata_get_1_aqsno2.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: get_1_aqsno2.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: get_1_aqsno2.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_