DataCamp: Pandas Cheat Sheet: Data Wrangling in Python
By now, you'll already know the Pandas library is one of the most preferred tools for data manipulation and analysis, and you'll have explored the fast, flexible, and expressive Pandas data structures,...
View ArticleThomas Guest: 24 Puzzles
On The Universe of Discourse Mark Dominus discusses the classic 24 Puzzle: You are given a sequence of four digits, say 1, 2, 3, 4, and your job is to combine them with ordinary arithmetic operations...
View ArticleTalk Python to Me: #102 Effective Code Reviews
How do you build reliable software with fewer bugs? Yes, unit testing is part of that. But did you know that code reviews often play a key role in this process and come with many benefits on top of...
View ArticleReuven Lerner: 2+2 might be 4, but what is True+True?
In Python, we know that we can add two integers together:>> 2 + 2 4And of course, we can add two strings together:>> 'a' + 'b' 'ab'We can even add two lists together:>> [1,2,3] +...
View ArticleMatthew Rocklin: Biased Benchmarks
This work is supported by Continuum Analytics the XDATA Program and the Data Driven Discovery Initiative from the Moore Foundation.SummaryPerforming benchmarks to compare software is surprisingly...
View ArticleMike Driscoll: Python 201 is Now an Online Course
My second book, Python 201: Intermediate Python, was just released as an online course over at Educative. I also have Python 101 on there as well. Educative is a pretty new educational website. It’s...
View Articlehypothesis.works articles: Hypothesis for Computer Science Researchers
I’m in the process of trying to turn my work on Hypothesis into a PhD and I realised that I don’t have a good self-contained summary as to why researchers should care about it.So this is that piece....
View ArticleDougal Matthews: Effective Code Review
I recently had the chance to speak with Michael Kennedy from Talk Python about code review and the talk I gave at EuroPython last year.It was lots of fun, if you want to check it out it, it is embedded...
View ArticlePyCharm: PyCharm 2017.1 EAP 10 (build 171.3780.17)
This week we’re releasing the last, but not the least, EAP for PyCharm 2017.1. Get the EAP now.We’ve resolved many bugs, including:Virtualenvs are now created with pip 9.0.1 and setuptools 28.8.0The...
View ArticlePeter Bengtsson: Don't forget your sets in Python!
I had this piece of code: new_all_ids=set(xforxinall_idsifxnotinto_process_ids)The all_ids is a list object of 1.1 million IDs. Some repeated. And to_process_ids is a list sample of 1,000 randomly...
View ArticleKushal Das: Having emojis in your Ubiquiti SSID
Ubiquiti management interface does not allow to have emojis in the network SSID. After asking over twitter about it, Donald Stufft pointed me to a hack in their forum.First, create a second wifi...
View ArticlePython Software Foundation: Ernest takes the call - Community Service Award...
The day was October 23, 2015, Friday afternoon. The PSF and PyCon organizers were busy pulling together sponsors for the upcoming PyCon conference when suddenly, the ancient mail server 'albatross'...
View ArticleLightning Fast Shop: Release 0.11.
We just released LFS 0.11. ChangesAdds Django 1.10 supportExcludes variants from sitemapAdd appending slash to all urlsUse F() expressions to update stock amount (#203)Use F() expression to increase...
View ArticleImport Python: Import Python Weekly Issue 114 - Python Fire By Google,...
Worthy Read Introducing Python Fire, a library for automatically generating command line interfaces - By Google Today we are pleased to announce the open-sourcing of Python Fire. Python Fire generates...
View ArticleYasoob Khalid: Importing with ctypes in Python: fighting overflows
IntroductionOn some cold winter night, we’ve decided to refactor a few examples and tests for Python wrapper in Themis, because things have to be not only efficient and useful, but elegant as well. One...
View ArticleDataCamp: DataChats: A Presentation by Eric Ma
Hi everyone, we just released episode 13 of our DataChats video series.In this episode, we interview Eric Ma. Eric uses code to solve big biological data problems at MIT. His tools of choice are deep...
View ArticleCatalin George Festila: The tensorflow python module - part 001.
TensorFlow™ is an open source software library for numerical computation using data flow graphs.I used Fedora 25 distro and python version 2.7.The base of this installation was the official...
View ArticleCatalin George Festila: Strange code in python.
Try this:>>> 2*24>>> _*28>>> print _*324>>> print _*'a'aaaaaaaa
View ArticlePyBites: Simple API Part 2 - Building a Deep Work Logger with Flask, Slack...
After Simple API - part 1 a more practical app in this part 2 tutorial: a Deep Work logger integrating Google docs and Slack, including deployment of the app to Heroku.
View ArticleMike Driscoll: Python – How to tell if a Function Has Been Called
Last year I ran into a situation where I needed to know if a function had been called. Basically we were trying to prevent shutting down a Twisted event loop twice or starting two of them. Anyway, in...
View Article