"FutureWarning: Support for multi-dimensional indexing (e.g. `obj[:, None]`) is deprecated and will be removed in a future version. Convert to a numpy array before indexing instead."
to resolve this I have replaced "astype" with "to_numpy"
1.0.3
Removal of Pandas deprecated functionality
1.0.2
Ensure that the Series objects do not contain duplicates in their indexes.