Laurens Versluis

Results 11 comments of Laurens Versluis

https://github.com/nalepae/pandarallel/blob/master/pandarallel/pandarallel.py#L443 I bet this somehow was

Going by git blame, logic changed in 1.4.7. I will try 1.4.6 and see if that works.

A wiki-like approach? What would be editable within and outside Tribler?

@ueshin good pointers (thanks!). I did check the type hints and my function has a return type annotated: `def toposort(df) -> pd.DataFrame["workflow_id": int, "task_id": int, "task_slack": int]` What this function...

I do not see in https://koalas.readthedocs.io/en/latest/reference/api/databricks.koalas.DataFrame.groupby.html#databricks.koalas.DataFrame.groupby how you can groupby on the index? Specifying `workflow_id` or `index` or `level=0` is not supported, while https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.groupby.html does explicitly mention this. Is the...

For completeness, here is the pandas variant: ``` def toApply(df): if df['a'].iloc[0] > 1: # Imagine a sanity check here return pd.DataFrame() return df df = pd.DataFrame({"a": [1,2], "b": [3,...

@HyukjinKwon Thanks for your reply. While returning (a part of) the original dataframe provided in the apply function works, returning a new one does not (using your suggestion). This does...

Any updates on the status of this PR?

Just realized that this whole approach isn't going to work at all. If a method uses a decorator that is also used for database operations then it will think that...

Plan 2: Analyze the call stack at the database function level, if it contains an `__init__` throw an exception and fix the case. Rinse and repeat. (Thread switching kills this...