ops
Miscellaneous operations.
General use
|
Type to confirm whether to proceed or not. |
|
Get main attributes of an object. |
|
Convert a string to its intrinsic data type. |
|
Convert standard GPS time to UTC time. |
|
Parse size from / into readable format of bytes. |
|
Get total number of chunks of a data file, given a minimum limit of chunk size. |
|
Get the relative or absolute path of |
|
Get pathname of an executable file for a specified application. |
|
Hash a password using hashlib.pbkdf2_hmac. |
|
Verify a password given salt and key. |
|
A decorator to measure the time of a function or class method. |
Basic data manipulation
Iterable
|
Get every pair (current, next). |
|
Split a list into (evenly sized) sub-lists. |
|
Split a list into a number of equally-sized sub-lists. |
|
Split a list into (evenly sized) chunks. |
|
Update a (nested) dictionary or similar mapping. |
|
Update keys in a (nested) dictionary. |
|
Get all values in a (nested) dictionary for a given key. |
|
Remove multiple keys from a dictionary. |
|
Compare the difference between two dictionaries. |
|
Merge multiple dictionaries. |
Tabular data
|
Detect if a str type column contains |
|
Create a rotation matrix (counterclockwise). |
|
Convert a dictionary to a data frame. |
|
Load in a compressed sparse row (CSR) or compressed row storage (CRS). |
|
Swap positions of two columns in an array. |
|
Swap positions of two rows in an array. |
|
Shift an array by desired number of rows. |
Basic computation
|
Get upper and lower bounds for extreme outliers. |
|
Calculate interquartile range. |
|
Find the closest date of a given one from a list of dates. |
Graph plotting
|
Create a discrete colour ramp. |
|
Create a colour bar. |
Web data extraction
Check whether the current machine can connect to the Internet. |
|
|
Check whether |
|
Check whether the current machine can connect to a given URL. |
|
Check whether a URL leads to a web page where there is downloadable contents. |
|
Instantiate a requests session. |
|
Load user-agent strings of popular browsers. |
|
Get a random user-agent string of a certain browser. |
|
Make a fake HTTP headers for requests.get. |
|
Download an object available at a valid URL. |
|
Download files on GitHub from a given repository URL. |