PythonHub
2.49K subscribers
2.35K photos
49.7K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Can LLMs translate Polars code to SQL?

Th post explores how large language models can translate natural language and Polars DataFrame expressions into equivalent SQL queries, bridging Python-centric data manipulation and SQL for analytics. It demonstrates how combining Polars’ in-memory performance with LLMs can help users leverage familiar SQL patterns without writing raw SQL themselves.

https://labs.quansight.org/blog/llm_polars_to_sql
Opticol

Optimized collections (opticol) for Python. This package provides memory-efficient, slot-based implementations of Python's standard collection types.

https://github.com/lessico/opticol/
Learn NumPy in 40 Minutes

The video introduces the core concepts of NumPy and shows how its array operations form the foundation of numerical computing in Python. It emphasizes why NumPy is a must-learn tool for data science, AI, machine learning, and scientific workflows.

https://www.youtube.com/watch?v=zI5ducyfyNc
django-polymorphic - Polymorphic models in Django

The video explains Django model inheritance and polymorphic models, showing how django-polymorphic returns the correct subclass types when querying a base model through the ORM. It also covers Django Admin support and integrations with other Django ecosystem packages to make polymorphic models easier to manage.

https://www.youtube.com/watch?v=d8MC2FQ_nqU