copulas/univariate/base.py
def _get_constant_value(X):
        """Checks if a Series or array contains only one unique value.

        Args:
            X(pandas.Series or numpy.ndarray): Array to check for constantness

        Returns:
            (float or None): Return the constant value if there is one, else return None.
        """
        uniques = np.unique(X)
        if len(uniques) == 1:
            return uniques[0]
Checks if a Series or array contains only one unique value.

        Args:
            X(pandas.Series or numpy.ndarray): Array to check for constantness

        Returns:
            (float or None): Return the constant value if there is one, else return None.
        
Checks if a Series or array contains only one unique value.
Checks if a Series or array contains only one unique value .
def _get_constant_value(X):
        uniques = np.unique(X)
        if len(uniques) == 1:
            return uniques[0]
def _get_constant_value ( X ) : uniques = np . unique ( X ) if len ( uniques ) == 1 : return uniques [ 0 ]
Checks if a Series or array contains only one unique value.
Checks if a Series or array contains only one unique value .
"""Checks if a Series or array contains only one unique value.

        Args:
            X(pandas.Series or numpy.ndarray): Array to check for constantness

        Returns:
            (float or None): Return the constant value if there is one, else return None.
        """
(float or None): Return the constant value if there is one, else return None.
( float or None ) : Return the constant value if there is one else return None .
X
Array to check for constantness
Array to check for constantness