Congratulations on the project, I know every single one of them takes a lot of grit and googling to master.
Some of the things I notice that are different in my codes:
- I use inline comments above the code line, that way people read the comment first and the code second.
- I don’t use titles above code blocks. But it looks cool what you’re doing.
One thing which is very recognizable is the renaming columns with a dictionary. Right now I believe that’s a lot of typing. I mean it is personal preference. But as you print df.columns you can
- copy that from the output
- paste and change names
- reassign back to df.columns.
Another thing you might want to correct is your end conclusion. Having high mileage is a bad thing for a car, which makes the value go down
One thing I noticed is the more technical the subject gets, the more important it becomes to know what every column means.
Finally, i would like to add that, you’ll get it. After hours and hours of googling I still don’t know the difference between .str.replace() and .replace() most of the time if one fails I try the other. Bottom line, try to find out what works best for yourself you’ll get there! Another thing which might come in handy is a cheat sheet. You can google most cheat sheets for every library
Cheers, and keep on coding every day!