here country column is str column but when i used split in country column that will happend i dnt understand what the problem
The issue is that the country column has missing values or NaN in it.
if you use .isnull() to count the number of nulls in country column you will find them. So you need to remove them.
One important thing to understand here is that NaN is always taken as float data type. That’s why your error is that float does not have attribute split.