human
I am working on the file "Python_OO.ipynb".
The first task is:
Documentation
If you want to share your code with collaborators or with your future self, you should include documentation. We've neglected that above, so let's add in some docstrings!
Can you write Python program for it?
 What is a the Python program you requested?
assistant
#Here is the Python program you requested.

class SpaceRock(object):
    
    """Container for Asteroids"""
    
    def __init__(self, name = None, ab_mag = None, albedo = None, 
                 semi_major= None, ecc = None):
        
        """
        Parameters
        ----------
        name : string
            Name of the target
        ab_mag : array-like
            Absolute Magnitude of each Asteroid
        albedo : array-like
            Albedo of each Asteroid
        semi_major : array-like
            Semi Major Axis of each Asteroid in AU
        ecc : array-like
            Eccentricity of each Asteroid
        """
        
        self.name = name
        self.ab_mag = ab_mag
        self.albedo = albedo
        self.semi_major = semi_major
        self.ecc = ecc
        
    def diameter(self):
        """
        Determine the diameter (in km) of the Asteroids
        """
        result = (1329.0 / np.sqrt(self.albedo)) * (10 ** (-0.2 * self.ab_mag))
        return result * u.km
    
    def two_diameter(self):
        """
        Determine twice the diameter (in km) of the Asteroids
        """
        result = 2.0 * self.diameter()
        return result
    
    def find_perihelion(self):
        """
        Determine the perihelion distance of the Asteroids in AU
        """
        result = self.semi_major * ( 1.0 - self.ecc )
        return result * u.AU

rocks = (SpaceRock(name=my_name, ecc = my_ecc, semi_major=my_semi_major, 
                   ab_mag=my_ab_mag, albedo=my_albedo))