How to format your strings in Python

Python offers several main ways to format your strings: Using + operator between elements to create a string, eg name + ” is ” + age + ” years old” Using curly braces and format like “{} is {} years old”.format(name,age) Using f strings like f”{name} is {age} years old” Using join like ” “.join(name, …

Setting with Copy Warning

One of the most frustrating issues in Pandas is the SettingWithCopyWarning. To a beginner in Pandas this can be one of the most frustrating issues to deal with. What becomes even more frustrating is that the documentation is not very helpful, and StackOverflow offers a ton of answers which don’t help either. The answer is …