python – Percentage of video game platforms on Spyder

I want to show the percentage of multiple platforms in my code with the dataset and this gives the following error:

ValueError: the lengths must match to be able to compare

The part that has the error in my code is so, help me discover the error

base = pd.read_csv (& gt; gamestest.csv)

Platform = base['Platform'].unique ()
total_platforms = len (base)

for platforms in the platform:

platform_content = base

based[based[base['Platform']== Platform]form[0]
print (##): {: 0.2f}% & # 39; format (Platform, platform_mount * 100 / total_platforms)