When I run the following code
import numpy as np
A = np.random.rand(10)
A.groupby
I get the error AttributeError: 'numpy.ndarray' object has no attribute 'groupby'. 
I uninstalled numpy, by running pip3 uninstall numpy multiple times, until it said WARNING: Skipping numpy as it is not installed.. I upgraded pip, and I reinstalled numpy. 
How do I fix this error?
I am using pip 19.3.1 and numpy 1.17.4.
 
    