Skip to main content

ydot logo

ydot

R-like formulas for Spark Dataframes.

Now you have the expressive power of R-like formulas to produce design matrices for your experimental needs. This API is based off of patsy, but for use with Apache Spark dataframes. Given a Spark dataframe, you can express your design matrices with something that resembles the following.

y ~ x1 + x2 + (x3 + a + b)**2

Here's a short and sweet example.

from ydot.spark import smatrices

spark_df = get_a_spark_dataframe()
formula = 'y ~ x1 + x2 + (x3 + a + b)**2'
y, X = smatrices(formula, spark_df)

Software Copyright

Copyright 2020 One-Off Coder

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Book Copyright

Copyright 2020 One-Off Coder

This work is licensed under a Creative Commons Attribution 4.0 International License by One-Off Coder.

Creative Commons Attribution 4.0 International License

Art Copyright

Copyright 2020 Daytchia Vang

Citation

@misc{oneoffcoder_ydot_2020,
title={ydot, R-like formulas for Spark Dataframes},
url={https://github.com/oneoffcoder/pyspark-formula},
author={Jee Vang},
year={2020},
month={Dec}}

Metadata

Release files for ydot 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ydot 0.0.6
File Size Uploaded
ydot-0.0.6.tar.gz 5.6 kB Details

Release files / ydot-0.0.6.tar.gz

Download URL ydot-0.0.6.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
252e26d0b8c6b00eb0acefdd6379ef232f58892f5b4f3332edba7c12464794d3
BLAKE2b-256 checksum
How to use checksums
3fc4f6f833689404670df44cc0157554c23a070113c61fa24b0ffe1bd91f79c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page