When you wrote StormType='Tropical Storm' you told it. The program only knows that because of you, the programmer.
For fun, change 'Tropical Storm' to any other string. Just put your name in it for instance. When you run the program you will now have a column full of your name as the value. Now obviously that is not correct when analyzing storm data, but hopefully you see what you are doing.
In this specific demo, we are telling you to do it. When working with real world data at work you will have to know about your data, and what abbreviations mean.
Hope that helped.
- Peter
... View more