I would like to ask you a question about the subject.

The details of the error are as follows.

TypeError: hist () got multiple values ​​for argument'bins'

The code content is as follows.

plt.hist (train.loc [train ['Survived'] == 0,'Fare']. dropna (),
         range (0, 250), bins = 25, alpha = 0.5, label = '0')
plt.hist (train.loc [train ['Survived'] == 1,'Fare']. Dropna (),
         range (0, 250), bins = 25, alpha = 0.5, label = '1')
plt.xlabel ('Fare')
plt.ylabel ('count')
plt.legend (title ='Survived')
plt.xlim (-5, 250)

In addition, since the following import is done in advance, it seems that it is not an error related to library recall.

import numpy as np
import pandas as pd
import pandas_profiling
import matplotlib.pyplot as plt
import seaborn as sns

I think it's just a typing mistake because I wrote it according to the code of the Kaggle introductory book that was published in the first place, and I think that it is just a typing mistake, but I am in trouble because I can not find the location of the typing mistake. We are here.

We apologize for the inconvenience, and thanks for your cooperation.