Português
Abrir no Telegram

Post My favorite way to work with multiple filters in pandas.Series — not a chain of .loc, but a single mask. 🐼

23 de junho de 2026
M
Machine Learning with Python
Link
clique para mostrar
My favorite way to work with multiple filters in pandas.Series — not a chain of .loc, but a single mask. 🐼 The chain looks neat, but breaks on real data and easily gives unexpected results: s = pd.Series([10, 15, 20, 25, 30]) s.loc[s > 20].loc[s % 2 == 1] The problem is that the second .loc again looks at the original s, not the already filtered result. The logic gets messy. 🤯 It's more reliable to gather everything into one expression: s = pd.Series([10, 15, 20, 25, 30]) mask = (s > 20) & (s % 2 == 1) result = s.loc[mask] One mask, one point of truth. ✅ It's easier to debug. Fewer surprises when the code grows. 🚀 #Pandas #Python #DataScience #CodingTips #DataEngineering #Debugging
7 · 3.9K ·

Por perto no feed

MMachine Learning with PythonLearn AI for free directly from top companies. 🚀 1 - Anthropic: anthropic.skilljar.com 2 - Google: grow.google/ai 3 - Meta: ai.meta.com/resources/ 4 - NVIDIA: d
esta mensagem
MMachine Learning with PythonGuide to scalable system design and interviews 🚀📊 https://github.com/karanpratapsingh/system-design #SystemDesign #Scalability #TechInterviews #SoftwareEngineerMMachine Learning with PythonCurated list of distributed systems papers and books 📚📖 https://github.com/theanalyst/awesome-distributed-systems ✨ Join Best TG Channels https://t.me/addlist/0
MMachine Learning with PythonMachine Learning with Python@CodeProgrammer · canal · Tecnologia
68 610inscritos2 592alcance médio dos posts
Feed da comunidade Abrir no Telegram

Um feed público aberto do índice de busca ChatCrawler — “o Google do Telegram público”; atualizado à medida que a comunidade é rastreada. Horários em UTC.

Somente conteúdo público, API oficial do Telegram. Sobre · Perguntas frequentes · Limites do índice · Remover uma página · Catálogo · Busca · Como calculamos