pyspark-util
A set of pyspark utility functions.
import pyspark_util as psu
data = [(1, 2, 3)]
columns = ['a', 'b', 'c']
df = spark.createDataFrame(data, columns)
prefixed = psu.prefix_columns(df, 'x')
prefixed.show()
# output:
+---+---+---+
|x_a|x_b|x_c|
+---+---+---+
| 1| 2| 3|
+---+---+---+
Development
Setup
docker-compose build
docker-compose up -d
Lint
docker exec psu-cnt ./tools/lint.sh
Test
docker exec psu-cnt ./tools/test.sh
Metadata
Release files for pyspark-util 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyspark_util-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pyspark_util-0.1.2-py3-none-any.whl
| Download URL | pyspark_util-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b310d283bd18e4d3e20cf9cc2e2f0453e98e57040613ede1082cea1e6c7397b
|
|
BLAKE2b-256 checksum How to use checksums |
830c0acf6b0471dfee4a4c5969d87b462fce981bbc9c43a799df987c16b47cf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9
|