You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Create an event for an impact given as a pd.Series.
207
210
@@ -215,7 +218,7 @@ def from_series(
215
218
The duration of the event (entire impact applied during this number of steps). Defaults to 1.
216
219
name : Optional[str]
217
220
A possible name for the event, for convenience. Defaults to None.
218
-
**kwarg :
221
+
**kwargs :
219
222
Keyword arguments keyword arguments to pass to the instantiating method
220
223
(depends on the type of event).
221
224
@@ -260,7 +263,7 @@ def from_series(
260
263
occurrence=occurrence,
261
264
duration=duration,
262
265
name=name,
263
-
**kwarg,
266
+
**kwargs,
264
267
)
265
268
266
269
@classmethod
@@ -271,7 +274,7 @@ def from_dataframe(
271
274
occurrence: int=1,
272
275
duration: int=1,
273
276
name: Optional[str] =None,
274
-
**kwarg,
277
+
**kwargs,
275
278
) ->Event:
276
279
"""Convenience function for DataFrames. See :meth:`~boario.event.Event.from_series`. This constructor only apply ``.squeeze()`` to the given DataFrame.
277
280
@@ -285,7 +288,7 @@ def from_dataframe(
285
288
The duration of the event (entire impact applied during this number of steps). Defaults to 1.
286
289
name : Optional[str]
287
290
A possible name for the event, for convenience. Defaults to None.
288
-
**kwarg :
291
+
**kwargs :
289
292
Keyword arguments
290
293
Other keyword arguments to pass to the instantiate method (depends on the type of event)
291
294
@@ -308,7 +311,7 @@ def from_dataframe(
308
311
occurrence=occurrence,
309
312
duration=duration,
310
313
name=name,
311
-
**kwarg,
314
+
**kwargs,
312
315
)
313
316
314
317
@classmethod
@@ -365,7 +368,7 @@ def from_scalar_industries(
365
368
occurrence: Optional[int] =1,
366
369
duration: Optional[int] =1,
367
370
name: Optional[str] =None,
368
-
**kwarg,
371
+
**kwargs,
369
372
) ->Event:
370
373
"""Creates an Event from a scalar and a list of industries affected.
371
374
@@ -390,7 +393,7 @@ def from_scalar_industries(
390
393
The duration of the event (entire impact applied during this number of steps). Defaults to 1.
391
394
name : Optional[str]
392
395
A possible name for the event, for convenience. Defaults to None.
393
-
**kwarg :
396
+
**kwargs :
394
397
Keyword arguments
395
398
Other keyword arguments to pass to the instantiate method (depends on the type of event)
0 commit comments