Model Creation In Python For All Selected Lines