@@ -207,7 +207,8 @@ class ValuationResult(
207207 extra_values: Additional values that can be passed as keyword arguments.
208208 This can contain, for example, the least core value.
209209
210- :raise ValueError: If input arrays have mismatching lengths.
210+ Raises:
211+ ValueError: If input arrays have mismatching lengths.
211212 """
212213
213214 _indices : NDArray [IndexT ]
@@ -611,7 +612,8 @@ def update(self, idx: int, new_value: float) -> "ValuationResult":
611612 Returns:
612613 A reference to the same, modified result.
613614
614- :raises IndexError: If the index is not found.
615+ Raises:
616+ IndexError: If the index is not found.
615617 """
616618 try :
617619 pos = self ._positions [idx ]
@@ -632,7 +634,9 @@ def update(self, idx: int, new_value: float) -> "ValuationResult":
632634 def get (self , idx : Integral ) -> ValueItem :
633635 """Retrieves a ValueItem by data index, as opposed to sort index, like
634636 the indexing operator.
635- :raises IndexError: If the index is not found.
637+
638+ Raises:
639+ IndexError: If the index is not found.
636640 """
637641 try :
638642 pos = self ._positions [idx ]
@@ -662,7 +666,8 @@ def to_dataframe(
662666 A dataframe with two columns, one for the values, with name
663667 given as explained in `column`, and another with standard errors for
664668 approximate algorithms. The latter will be named `column+'_stderr'`.
665- :raise ImportError: If pandas is not installed
669+ Raises:
670+ ImportError: If pandas is not installed
666671 """
667672 if not pandas :
668673 raise ImportError ("Pandas required for DataFrame export" )
@@ -700,7 +705,8 @@ def from_random(
700705 A valuation result with its status set to
701706 [Status.Converged][pydvl.utils.status.Status] by default.
702707
703- :raises ValueError: If `size` is less than 1.
708+ Raises:
709+ ValueError: If `size` is less than 1.
704710
705711 !!! tip "Changed in version 0.6.0"
706712 Added parameter `total`. Check for zero size
0 commit comments