Best of Python — March 2024
- 1
- 2
Medium·2y
Forget `pip install`, Use This Instead
Install Python packages up to 100x faster with uv, a turbo-fast Python package installer and resolver written in Rust as a substitute for pip. uv is faster due to Rust, global module cache, copy-on-write and hardlinks. You can install uv using curl, pip, or brew.
- 3
- 4
- 5
- 6
gitconnected·2y
Monte Carlo Simulation in Python: Advanced Investment Risk Analysis
Monte Carlo Simulation is a computational algorithm that utilizes repeated random sampling to obtain numerical results. It is used in finance to model scenarios that involve uncertainty and predict the impact of risk. The simulation for stocks and cryptocurrencies involves historical data analysis, random sample generation, price simulation, and result analysis. The accuracy of the simulation depends on the assumptions made about return distributions and volatility.
- 7
KDnuggets·2y
Build An AI Application with Python in 10 Easy Steps
Learn the 10 easy steps to build an AI application with Python, including defining objectives, collecting data, data preparation, selecting a model, training the model, evaluating model performance, iterating and optimizing, creating a web application, deploying to the cloud, and sharing the AI model.
- 8
Community Picks·2y
microsoft/generative-ai-for-beginners: 18 Lessons, Get Started Building with Generative AI 🔗 https://microsoft.github.io/generative-ai-for-beginners/
Comprehensive course by Microsoft Cloud Advocates covering the fundamentals of building Generative AI applications with 18 lessons. Lessons include both theory and coding examples in Python and TypeScript.
- 9
Community Picks·2y
Python String Methods
This post introduces Python string methods, including basic methods for case adjustment, searching and replacing, trimming, splitting and joining, advanced manipulations, and subtly different methods for decimals, digits, and numerics. It also mentions new additions in Python 3.9 for removing prefixes and suffixes from strings.
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
Hacker News·2y
Designing a Pure Python Web Framework · Reflex Blog
Reflex is a Python web framework that allows developers to build web apps without needing to learn a new language. It combines a React frontend and a FastAPI backend, using WebSockets to handle communication between the two. Reflex simplifies the process of building web apps, eliminates the need for boilerplate code, and provides a unified look and feel. Event triggers and state updates are handled automatically by Reflex.
- 20
KDnuggets·2y
Pydantic Tutorial: Data Validation in Python Made Simple
Learn how to use Pydantic, a popular data validation library, to model and validate your data in Python. This tutorial covers the installation process, creating a basic Pydantic model, and loading and parsing JSON data using Pydantic models.
- 21
- 22
- 23
Community Picks·2y
Turn Python BLAZING FAST with these 6 secrets
Learn six secrets to make Python faster, including using building functions from the standard library, utilizing generators, implementing concurrency, compiling code with Cython, using compiled libraries and frameworks such as NumPy, Pandas, and Pillow, and considering alternative interpreters like PyPy.
- 24
TigerData (Creators of TimescaleDB)·2y
Guide to Time-Series Analysis in Python
Learn how Python can be used for time-series analysis, including loading and analyzing time-series data, plotting with Pyplot, and handling challenges of working with large datasets. Explore the advantages of Python, such as its simplicity, extensive library support, and code reusability. Discover specialized libraries like pandas, Matplotlib, tsfresh, and more for advanced time-series tasks. Gain insights into data cleaning, trend analysis, seasonality detection, forecasting models, and feature extraction for machine learning or deep learning algorithms.
- 25
