Skip to content

Commit 6899535

Browse files
committed
had to fix import of method_call_ctx_factory after switching to pf 0.5.0
1 parent b48ce42 commit 6899535

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyjviz/pf_pandas.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import ipdb
1+
#import ipdb
22
import threading
33
import pandas as pd
44
import pandas_flavor as pf
5+
import pandas_flavor.register
56
import uuid
67
import inspect
78
from contextlib import nullcontext
@@ -56,7 +57,8 @@ def create(method_name, method_args, method_kwargs):
5657

5758

5859
def enable_pf_pandas__():
59-
pf.register.method_call_ctx_factory = PandasFlavorMethodCallFactory.create
60+
#ipdb.set_trace()
61+
pandas_flavor.register.method_call_ctx_factory = PandasFlavorMethodCallFactory.create
6062

6163
old_DataFrame_init = pd.DataFrame.__init__
6264
def aux_init(func, *x, **y):

0 commit comments

Comments
 (0)