blaze / blaze/odo

odo regex hdfstores into DataFrame fails

Open
#176 9 comments 0 reactions 1 assignee Claimed by @cpcloud View on GitHub
bug
Dominant language
Python
Stars
1k
Forks
131
PR merge metrics
No merged PRs in 30d

Description

IIUC, the following way of calling `odo` is supported:

``` bash
In [11]: odo('hdfstore://temp_*.h5::df', pd.DataFrame)
```

but it returns this error:

``` bash
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in ()
----> 1 odo('hdfstore://temp_*.h5::df', pd.DataFrame)

/Users/klay6683/miniconda3/lib/python3.4/site-packages/odo/odo.py in odo(source, target, **kwargs)
88 odo.append.append - Add things onto existing things
89 """
---> 90 return into(target, source, **kwargs)

/Users/klay6683/miniconda3/lib/python3.4/site-packages/multipledispatch/dispatcher.py in __call__(self, *args, **kwargs)
161 self._cache[types] = func
162 try:
--> 163 return func(*args, **kwargs)
164
165 except MDNotImplementedError:

/Users/klay6683/miniconda3/lib/python3.4/site-packages/odo/into.py in into_string_string(a, b, **kwargs)
117 @into.register((type, str), str)
118 def into_string_string(a, b, **kwargs):
--> 119 r = resource(b, **kwargs)
120 return into(a, r, **kwargs)
121

/Users/klay6683/miniconda3/lib/python3.4/site-packages/odo/regex.py in __call__(self, s, *args, **kwargs)
62
63 def __call__(self, s, *args, **kwargs):
---> 64 return self.dispatch(s)(s, *args, **kwargs)
65
66 @property

/Users/klay6683/miniconda3/lib/python3.4/site-packages/odo/resource.py in resource_split(uri, *args, **kwargs)
104 def resource_split(uri, *args, **kwargs):
105 uri, other = uri.rsplit('::', 1)
--> 106 return resource(uri, other, *args, **kwargs)

/Users/klay6683/miniconda3/lib/python3.4/site-packages/odo/regex.py in __call__(self, s, *args, **kwargs)
62
63 def __call__(self, s, *args, **kwargs):
---> 64 return self.dispatch(s)(s, *args, **kwargs)
65
66 @property

TypeError: resource_glob() takes 1 positional argument but 2 were given
```

My system:
python 3.4,
odo 0.3.1,
pandas 0.16

Edit:
All stores look like this:

``` python
In [13]: store = pd.HDFStore('temp_ESP_020339_0985.h5')

In [14]: store
Out[14]:

File path: temp_ESP_020339_0985.h5
/df frame (shape->[366,23])
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.