Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

FutureWarning: Using short name for 'orient' is deprecated. #844

Open
Hawk777 opened this issue Aug 22, 2020 · 0 comments · May be fixed by #845
Open

FutureWarning: Using short name for 'orient' is deprecated. #844

Hawk777 opened this issue Aug 22, 2020 · 0 comments · May be fixed by #845

Comments

@Hawk777
Copy link
Contributor

Hawk777 commented Aug 22, 2020

  • InfluxDB version: 1.8.1
  • InfluxDB-python version: 5.3.0
  • Python version: 3.7.8
  • Operating system version: Gentoo

When running the tests, this output shows up and the tests fail:

======================================================================
ERROR: Test write points from json with NaN lines and tags.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/cache/portage/dev-python/influxdb-5.3.0/work/influxdb-5.3.0/influxdb/tests/dataframe_client_test.py", line 1237, in test_write_points_from_dataframe_with_tags_and_nan_json
    tag_columns=['tag_one', 'tag_two'])
  File "/var/cache/portage/dev-python/influxdb-5.3.0/work/influxdb-5.3.0/influxdb/_dataframe_client.py", line 131, in write_points
    field_columns=field_columns)
  File "/var/cache/portage/dev-python/influxdb-5.3.0/work/influxdb-5.3.0/influxdb/_dataframe_client.py", line 297, in _convert_dataframe_to_json
    dataframe[tag_columns].to_dict('record'),
  File "/usr/lib/python3.7/site-packages/pandas/core/frame.py", line 1487, in to_dict
    FutureWarning,
FutureWarning: Using short name for 'orient' is deprecated. Only the options: ('dict', list, 'series', 'split', 'records', 'index') will be used in a future version. Use one of the above to silence this warning.

This warning was added to Pandas in commit e734449c95497d0e79d7529d94d82b4043a68f8b, apparently first released in 1.1.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant