String not converting

Ask questions about projects relating to: computer science or pure mathematics (such as probability, statistics, geometry, etc...).

Moderators: AmyCowen, kgudger, bfinio, MadelineB, Moderators

Post Reply
aaaaddaddad
Posts: 1
Joined: Mon Sep 16, 2024 6:38 pm
Occupation: Student

String not converting

Post by aaaaddaddad »

Hello, I am following this project: https://www.sciencebuddies.org/science- ... ns-Spotify

and the string will not convert, I have copied the entire thing up to this point perfectly, can someone take a look at the screenshot?
IMG_7239.jpeg
IMG_7239.jpeg (432.46 KiB) Viewed 6375 times
(Admin note: added screenshot inline)
amyCC
Site Admin
Posts: 405
Joined: Wed Apr 01, 2020 4:02 pm
Occupation: Moderator
Project Question: *
Project Due Date: *
Project Status: Not applicable

Re: String not converting

Post by amyCC »

You want to make sure that as you go through the project, you are carefully looking at the code in Colab (and the project directions) and not just running each block.

Under "Preprocessing the Dataset" in the project, did you do step 1? In the colab notebook, that block is marked as a TODO. You need to edit that code, as noted. Then rerun that block and all blocks after. (There are other TODO blocks as well.)

If you have already edited that line of code in the notebook and are still seeing an error, please copy and paste your edited code that you have in this section so we can troubleshoot:

# TODO: List the columns that you want to drop
columns_to_drop = ['Artist']

Let us know if you have questions or are still running into an error after making changes to that section.

Amy
Science Buddies
Post Reply

Return to “Grades 6-8: Math and Computer Science”