Pandas Brain Teasers: Exercise Your Mind

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

This book contains 25 short programs that will challenge your understanding of Pandas. Like any big project, the Pandas developers had to make some design decisions that at times seem surprising. This book uses those quirks as a teaching opportunity. By understanding the gaps in your knowledge, you'll become better at what you do. Some of the teasers are from the author's experience shipping bugs to production, and some from others doing the same. Teasers and puzzles are fun, and learning how to solve them can teach you to avoid programming mistakes and maybe even impress your colleagues and future employers. Working with data is central to nearly everything we do, from disease contact tracing and analyzing health records to smart meters that track utility consumption behavior. With the power of Python's pandas library, you can process and analyze this data in a highly efficient and simple-to-understand way. And with 25 brain teasers designed to turn this technology's quirks into a teaching opportunity, you'll be honing your data science skills while having fun at the same time. Following a simple format, you'll challenge yourself and your understanding of pandas. Read a short Python program that uses pandas, try to guess the output, run the code yourself, and then go to the next page for an explanation of the solution. From common pitfalls and hidden gotchas to unexpected twists and turns, you'll deepen your understanding of pandas, learn to write more efficient code, and reduce the number of bugs in the software you develop. You may even impress your colleagues and your employers, both present and future. Learn the tricks of the trade with Python's pandas, in one of the most fun and creative ways around. What You Need: To run the code you'll need Python version 3.8 or upper and Pandas version 1.0 or upper installed. We use Python version 3.8.3 and Pandas version 1.0.5; the output might change in future versions.

Author(s): Miki Tebeka
Edition: 1
Publisher: Pragmatic Bookshelf
Year: 2021

Language: English
Commentary: Vector PDF
Pages: 92
City: Raleigh, NC
Tags: Python; pandas; Elementary; Assignments

Cover
Table of Contents
Acknowledgments
Preface
About the Author
About the Code
About You
One More Thing
Part I—Pandas Brain Teasers
Puzzle 1. Rectified
Puzzle 2. In or Out?
Puzzle 3. Month by Month
Puzzle 4. Round and Round We Go
Puzzle 5. Let's Get Schwifty
Puzzle 6. Full of It
Puzzle 7. A Delicious Div Sum
Puzzle 8. Once Upon a Time
Puzzle 9. A Hefty Bonus
Puzzle 10. Free Range
Puzzle 11. Phil? Nah!?
Puzzle 12. Multiplying
Puzzle 13. A 10% Discount
Puzzle 14. A Tale of One City
Puzzle 15. Free-Range
Puzzle 16. Y3K
Puzzle 17. Not My Type
Puzzle 18. Off with Their NaNs
Puzzle 19. Holding out for a Hero
Puzzle 20. It's a Date!
Puzzle 21. What's the Points?
Puzzle 22. Find Me a Phone Booth
Puzzle 23. Chain of Commands
Puzzle 24. Late Addition
Puzzle 25. Hit and Run
Index
– SYMBOLS –
– A –
– B –
– C –
– D –
– E –
– F –
– I –
– J –
– L –
– M –
– N –
– O –
– P –
– R –
– S –
– T –
– U –
– W –
– Y –
– Z –