I would like to create class to find the missing values but below is my mistakes and how can I fix that please help?
import pandas as pd
data={'product':['A','B','C','D'],'sales':[100,None,256,100]}
data=pd.DataFrame(data=data)
class Information():
def __init__(self):
print('information object created')
def get_missing_values(self):
missing_values=data.isnull().sum()
return missing_values
class Ml:
def __init__(self,data):
print('DataPrep created')
self.data=data
self._info=Information()
Ml=Ml(data)
Ml.Information()

Mldoesn't have an attributeInformation; the code only defines the attributesdataand_info. Why would you think it does otherwise?