Advanced Options¶
The argument
sepsupports regular expression! For example,:::python df = pd.read_csv(file, sep+" +")
nrows: control the number of rows to read skiprows, skip blank lines (the default behavior)
namesarray-like, optional List of column names to use. If the file contains a header row, then you should explicitly pass header=0 to override the column names. Duplicates in this list are not allowed.
Hands on the Socket Module in Python
Download Files from the Internet in Python
The shell command curl and wget can be called (using os.system or subprocess.run)
to download files from internet.
You can also download files using Python modules directly of course.
Send Emails in Python
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Use Standard Libraries smtplib and email
Below is a function for sending email leveraging standard libraries smtplib and email.
import smtplib
from email.mime.text import MIMEText
def send_email(recipient: Union …Blogging Platforms
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
medium: paid
hashnode.dev
dev.to
GitHub
Paid Platforms
Tips on pyenv
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
pyenv lets you easily switch between multiple versions of Python.
It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.
Install pyenv
curl https://pyenv …