Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

InfluxDB Pandas example: client.delete_database(dbname) error #358

Closed
@ajsmith007

Description

@ajsmith007

The pandas example has a bug in the following code around line 32:

print("Delete database: " + dbname)
    client.delete_database(dbname)

which returns

Traceback (most recent call last):
  File "/Users/drew/PycharmProjects/influxdb/influxdb_pandas.py", line 52, in <module>
    main(host=args.host, port=args.port)
  File "/Users/drew/PycharmProjects/influxdb/influxdb_pandas.py", line 36, in main
    client.delete_database(dbname)
AttributeError: 'DataFrameClient' object has no attribute 'delete_database'

and should be:

print("Delete database: " + dbname)
    client.drop_database(dbname)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions