Skip to content

Commit

Permalink
Fix InfluxDB export by skipping empty fields
Browse files Browse the repository at this point in the history
  • Loading branch information
gutzbenj committed Jun 22, 2021
1 parent 81f88a0 commit 5d247df
Show file tree
Hide file tree
Showing 9 changed files with 257 additions and 218 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Expand Up @@ -8,6 +8,7 @@ Development
- Add support for wetterdienst core API in cli and restapi
- Export: Use InfluxDBClient instead of DataFrameClient and improve connection handling with InfluxDB 1.x
- Export: Add support for InfluxDB 2.x
- Fix InfluxDB export by skipping empty fields

0.19.0 (14.05.2021)
*******************
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -243,11 +243,11 @@ Get data:
... ).filter_by_station_id(station_id=(1048, 4411))
>>> request.df.head() # station list
station_id from_date to_date height \
209 01048 1934-01-01 00:00:00+00:00 ... 00:00:00+00:00 227.0
209 01048 1934-01-01 00:00:00+00:00 ... 00:00:00+00:00 228.0
818 04411 1979-12-01 00:00:00+00:00 ... 00:00:00+00:00 155.0
<BLANKLINE>
latitude longitude name state
209 51.1280 13.7543 Dresden-Klotzsche Sachsen
209 51.1278 13.7543 Dresden-Klotzsche Sachsen
818 49.9195 8.9671 Schaafheim-Schlierbach Hessen
>>> request.values.all().df.head() # values
Expand Down
41 changes: 34 additions & 7 deletions THIRD_PARTY_NOTICES
Expand Up @@ -130,7 +130,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


GitPython
3.1.17
3.1.18
BSD License
Sebastian Thiel, Michael Trier
https://github.com/gitpython-developers/GitPython
Expand Down Expand Up @@ -1675,7 +1675,7 @@ POSSIBILITY OF SUCH DAMAGE.


anyio
3.1.0
3.2.0
MIT License
Alex Grönholm
UNKNOWN
Expand Down Expand Up @@ -5176,6 +5176,33 @@ See the License for the specific language governing permissions and
limitations under the License.


influxdb
5.3.1
MIT License
UNKNOWN
https://github.com/influxdb/influxdb-python
The MIT License (MIT)

Copyright (c) 2020 InfluxDB

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


iniconfig
1.1.1
MIT License
Expand Down Expand Up @@ -5210,7 +5237,7 @@ http://ipython.org
UNKNOWN

isort
5.8.0
5.9.1
MIT License
Timothy Crosley
https://pycqa.github.io/isort/
Expand Down Expand Up @@ -5551,7 +5578,7 @@ to indicate the copyright and license terms:


jupyter-server-mathjax
0.2.2
0.2.3
BSD License
Jupyter Development Team
http://jupyter.org
Expand Down Expand Up @@ -9906,7 +9933,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


terminado
0.10.0
0.10.1
BSD License
Jupyter Development Team
https://github.com/jupyter/terminado
Expand Down Expand Up @@ -10416,7 +10443,7 @@ http://www.tornadoweb.org/


tqdm
4.61.0
4.61.1
MIT License, Mozilla Public License 2.0 (MPL 2.0)
UNKNOWN
https://tqdm.github.io
Expand Down Expand Up @@ -11255,7 +11282,7 @@ https://github.com/SimonSapin/python-webencodings
UNKNOWN

websocket-client
1.0.1
1.1.0
GNU Lesser General Public License v2 or later (LGPLv2+)
liris
https://github.com/websocket-client/websocket-client.git
Expand Down

0 comments on commit 5d247df

Please sign in to comment.