Python Base covers Python news, resources and Python code snippets.

Joined April 2019
Photos and videos
If you are into #Python and want to learn more about the language especially how to automate stuff, @AlSweigart is your guy. Get 'Automate the Boring Stuff with Python' Udemy course for free 👇 mobile.twitter.com/AlSweigar…

3
29 Sep 2019
The built-in logging mechanism in #Python is amazing. Generating file based logs and using tail -f (on linux / mac) is a fun away to interact with, and debug, an application / script.
1
Sunsetting #Python 2 - The official sunset date is released. buff.ly/2LBaJ1K

29 Jul 2019
Wondering if any GH type games have been made in python? buff.ly/2yhnat9

29 Jul 2019
How to intermix dataframes in pandas? buff.ly/2Yo9asd

28 Jul 2019
Goodforbitcoin, a Python cryptocurrency market tracker buff.ly/2Mvz4bx

28 Jul 2019
Efficient way of parsing a string in Python buff.ly/2YtxoBj

1
1
pythonbase retweeted
"Give someone a program, you frustrate them for a day; teach them how to program, you frustrate them for a lifetime." - David Leinweber
12
362
1,323
24 Jul 2019
Bankruptcy Prediction with Python buff.ly/2YmgSYa

24 Jul 2019
Episode #140 Becoming a 10x Developer (sorta) via @pythonbytes buff.ly/2YaKsM1

pythonbase retweeted
#python tip: Make self-describing data by adding docstrings to named tuple attributes and to properties: OMS_Burn = namedtuple('OMS_Burn', ('thrust', 'impulse')) OMS_Burn.__doc__ = 'RCS MMH/N₂O₄' OMS_Burn.thrust.__doc__ = 'kilonewtons' OMS_Burn.impulse.__doc__ = 'milliseconds'
6
51
216
pythonbase retweeted
#Python cuteness: The walrus assignment expression operator and an f-string reverse walrus operator on the same line: for angle in range(360): print(f'{angle=}\N{degree sign} {(theta:=radians(angle))=:.3f} {sin(theta)=:.3f}')
24
37
162
pythonbase retweeted
As a #python 3.8 learning exercise, I'm using the walrus operator, / notation, and f= at every opportunity and then evaluating the result for clarity. The goal is to learn when the new features are better and when they are worse. On Twitter, I'm presenting them without judgment.
5
23
164
18 Jul 2019
What's coming in Python 3.8 buff.ly/2NZcvOH

1
pythonbase retweeted
15 Jul 2019
Have 100 books (mostly non-fiction) that I need to dispose of urgently in order to make space for new purchases. Selling as low as Rs 300 /book. Huge discount if someone can take all of them. Plz RT I am in Karachi.
3
8
2
pythonbase retweeted
#pytest 5.0 has been released! This is the first release which is **Python 3 Only** -- the release also contains a bunch of new features and fixes. Check out the full changelog: docs.pytest.org/en/latest/ch…

1
76
159
pythonbase retweeted
Since Yahoo Finance API is deprecated, there are limited options to grab their data. If you're doing it in Python, go for yfinance package by @Aroussi, pulls data in pandas frame. Fun to work with. 👍 github.com/ranaroussi/yfinan… x.com/kashaziz/status/114463…

28 Jun 2019
Working on #Python #Flask web service to provide stock related info. 1. Input: Stock symbol, say MSFT via URL end point 2. Data fetched from Yahoo Finance and other sources 3. Excel document generated with company info, financials, stock history 4. Output: base64 encoded JSON
1
3
4
pythonbase retweeted
30 Jun 2019
🐍📰 Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 3 — realpython.com/flask-connexi…
17
52
pythonbase retweeted
how I got better at debugging
136
3,224
10,762
29 Jun 2019
#Python now beating #Java on Google Trends Worldwide reddit.com/r/Python/comments…