File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
from sortedcontainers import SortedDict , SortedSet
8
8
9
9
from adaptive .learner .base_learner import BaseLearner
10
+ from adaptive .types import Int
10
11
from adaptive .utils import assign_defaults , partial_function_from_dataframe
11
12
12
13
try :
23
24
from typing_extensions import TypeAlias
24
25
25
26
26
- PointType : TypeAlias = Tuple [int , Any ]
27
+ PointType : TypeAlias = Tuple [Int , Any ]
27
28
28
29
29
30
class _IgnoreFirstArgument :
@@ -224,7 +225,9 @@ def load_dataframe(
224
225
y_name : str, optional
225
226
The ``y_name`` used in ``to_dataframe``, by default "y"
226
227
"""
227
- self .tell_many (df [[index_name , x_name ]].values , df [y_name ].values )
228
+ indices = df [index_name ].values
229
+ xs = df [x_name ].values
230
+ self .tell_many (zip (indices , xs ), df [y_name ].values )
228
231
if with_default_function_args :
229
232
self .function = partial_function_from_dataframe (
230
233
self ._original_function , df , function_prefix
You can’t perform that action at this time.
0 commit comments