wesm / pydata-book

Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media
Other
22.27k stars 15.19k forks source link

Ch03 fstring for unpacking tuples #147

Closed wrongways closed 2 years ago

wrongways commented 2 years ago

As of python v3.8 fstrings have a shorthand format option to print variable values with an equals sign. This PR updates the tuple unpacking example in chapter 3 to use this approach.

wesm commented 2 years ago

Thanks — I have already updated to f-strings in the 3rd edition draft (to be published early next year!), so I will update these notebooks here in the near future.