Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FutureWarning: Conversion of the second argument of issubdtype from int to np.signedinteger is deprecated. #616

Open
kothique opened this issue Aug 27, 2018 · 3 comments

Comments

@kothique
Copy link

kothique commented Aug 27, 2018

Arctic Version

arctic-1.68.0

Arctic Store

TickStore

Platform and version

Linux 4.15.0-29deepin-generic x86_64
Python 3.6.5

Description of problem and/or code sample that reproduces the issue

(second line)

(quotes_fetcher-eB5mEd6u) (default2)kothique@kothique-laptop:~/Development/__tmp/__python/quotes_fetcher$ python reproduce.py 
/home/kothique/.local/share/virtualenvs/quotes_fetcher-eB5mEd6u/lib/python3.6/site-packages/arctic/tickstore/tickstore.py:413: FutureWarning: Conversion of the second argument of issubdtype from `int` to `np.signedinteger` is deprecated. In future, it will be treated as `np.int64 == np.dtype(int).type`.
  if np.issubdtype(dtype, int):
                                     col1     col2
2018-08-27 12:55:05.950000+03:00  1.13254  1.13135
from arctic import Arctic, TICK_STORE
from datetime import datetime, timezone

conn = Arctic("localhost")
conn.initialize_library("repr_lib", lib_type=TICK_STORE)
lib = conn.get_library("repr_lib")

date = datetime.now(timezone.utc)
lib.write("sym1", [{"col1":"1.13254","col2":"1.13135","index":date}]) # <- warning is printed from here

df = lib.read("sym1")
print(df)
@kothique kothique changed the title Exception: Conversion of the second argument of issubdtype from int to np.signedinteger is deprecated. FutureWarning: Conversion of the second argument of issubdtype from int to np.signedinteger is deprecated. Aug 27, 2018
@bmoscon
Copy link
Collaborator

bmoscon commented Aug 29, 2018

what version of pandas and numpy are you running? you can run pip freeze to display them

@kothique
Copy link
Author

pandas==0.23.4
numpy==1.15.1

@fl4p-old
Copy link

Fix, may create a PR:

In Tickstore.py replace

if np.issubdtype(dtype, int):

with

if np.issubdtype(dtype, np.integer):
`` 

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

No branches or pull requests

3 participants