Fit Method In Python Example Code