from pyspark.sql import SparkSession
from pyspark.sql import functions as F
from firelink.fire import Firstflame
[docs]class WithColumn(Firstflame):
"""with column"""
def __init__(self, colname, col):
self.colname = colname
self.col = col
[docs]class Select(Firstflame):
"""select"""
def __init__(self, col):
self.col = col
[docs]class ConditionalMapping(Firstflame):
"""conditional mapping"""
def __init__(self, col, new_col, val, fill, result):
self.col = col
self.new_col = new_col
self.val = val
self.fill = fill
self.result = result