Skip to content
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 opened this issue Aug 6, 2016 · 3 comments · Fixed by #388
Closed

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

ajsmith007 opened this issue Aug 6, 2016 · 3 comments · Fixed by #388

Comments

@ajsmith007
Copy link

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)
@gseismic
Copy link

gseismic commented Oct 5, 2016

Yes

@gansanay
Copy link
Contributor

Addressed in PR #386

@gsokoll
Copy link

gsokoll commented Mar 2, 2017

Issue still exists in influxdb-python/examples/tutorial_pandas.py

line 32: client.delete_database(dbname)

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.

4 participants