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
Deco with pandas data structures #18
Comments
It looks like you have a type dict, not one that is indexed. If you do a Leland... On Mon, May 16, 2016 at 6:52 AM, wikiped notifications@github.com wrote:
|
Hm, there might be some confusion with the
From the docs I have refferenced:
You access/modify Data in Series through Index:
So in |
The exception is a bit of misdirection unfortunately, the problem is not with the assignment I think, but rather the argument |
I've been able to run this example again in the latest version of |
@alex-sherman I have tried the same code with the latest build 0.4.1 and get
This happens on python 2.7 and 3.5. Or is this fix not part of 0.4.1 release? |
Could you provide the exact code your using? I tried the example you have in the first post and it executed without a problem on my machine. The error looks like it's caused by some inconsistency between module loads or something in the processes spawned by pool. That key error is probably the result of a failed lookup of the concurrent function being referenced. If you're using multiple modules or something this may be the cause, but I would definitely like to fix this either way. |
It turns out the reason for the failure was that I was running the code (that I had in my original post) in jupyter notebook and I kind of forgot that mulitprocessing module has to be safeguarded with If I run the code from shell then everything works fine. So thank you again and sorry for confusion. |
While experimenting with
deco
andpandas
I was hoping that the code below would work.The intention was to simulate parallel-processing of a dummy
pandas.DataFrame
, where vectorized implementation is supposedly not possible.Produces:
Now trying to
join
cells in each row with:Gives an error
Assignment attempted on something that is not index based
:Which is somewhat strange given that assignment is index based.
Is this because
deco
doesn't 'understand' this particular data structure (pandas.Series
) or is there a problem in the code?The text was updated successfully, but these errors were encountered: