def transpose_square(df):
    """
    Transposes and numerically squares a dataframe

    Parameters
    ----------
    df : pandas.DataFrame
        The dataframe whose values will be squared and transposed.

    Returns
    -------
    trans_sqrd : pandas.DataFrame
        A modified copy of the original dataframe

    Examples
    --------
    >>> import pyexample
    >>> data = pyexample.load_example_data()
    >>> print(data)
       A  B  C  D
    a  1  2  3  4
    b  5  6  7  8
    c  9  0  1  2

    >>> pyexample.transpose_square(data)
        a   b   c
    A   1  25  81
    B   4  36   0
    C   9  49   1
    D  16  64   4

    """

    return df.transpose() ** 2