Regular practice on Data Science, Machien Learning, Deep Learning, Solving ML Project problem, Analytical Issue. Regular boost up my knowledge. The goal is to help learner with learning resource on Data Science filed.
def str(self):
"""
String for representing the Model object
"""
if self.book:
return '%s (%s)' %(self.id, self.book.title))
else:
return '%s (%s)' %(self.id, self.imprint)) # add some other value that you want here
def str(self): """ String for representing the Model object """ if self.book: return '%s (%s)' %(self.id, self.book.title)) else: return '%s (%s)' %(self.id, self.imprint)) # add some other value that you want here