Python Descriptors, Data Science Trends, and Tooling
·20m 45s
Shared point
–
Exploring Python Development and Data Science Insights
This episode of Python Bytes covers a diverse range of topics, from low-level language features to current professional trends in the industry.
Core Python Features
- Python Descriptors: A powerful way to implement getters, setters, and deleters for object attributes. Using these allows developers to manage data validation and computation on-the-fly without changing the object's public API.
- Memoization: A performance-optimizing technique using the
functoolsmodule's LRU Cache. The hosts also discussedcache.pyfor persistent, file-based caching, which is ideal for CLI tools. - CPython Bytecode Explorer: An interesting JupyterLab plugin that allows developers to visualize how Python code is compiled into bytecode in real-time, helping to identify performance differences between operations like
forloops andwhileloops.
Data Science Tools & Surveys
- Data Science Survey: A review of a recent JetBrains survey detailing industry preferences. While Python remains the dominant language, tools like Keras are heavily favored by professionals, whereas beginners often gravitate toward platform services like Azure ML.
- Improving Visualization: An introduction to Chartify, a library built on top of Bokeh designed to simplify the charting experience for beginners by providing sensible defaults.
- Learning Resources: The hosts highlighted a concise video guide for setting up data science tools, specifically focusing on Anaconda virtual environments and Conda management.
"Memoization is a technique to, if you've got a function or something, some work that you need to do... only dependent on the input parameters... basically just store the data, calculate it once."
Fun & Community
- The episode concluded with a lighthearted look at a satirical video titled How the Internet is Made, providing a humorous break for listeners.
- The hosts announced an upcoming Year in Review special, highlighting the most significant Python stories of 2018.