Beispiel #1
0
def spark_latlongs(pandas_latlongs):
    return [
        pd_to_spark(
            series.apply(lambda tup: list(tup)
                         if isinstance(tup, tuple) else tup))
        for series in pandas_latlongs
    ]
Beispiel #2
0
def spark_datetimes(pandas_datetimes):
    return [pd_to_spark(series) for series in pandas_datetimes]
Beispiel #3
0
def spark_bools(pandas_bools):
    return [pd_to_spark(series) for series in pandas_bools]
Beispiel #4
0
def spark_doubles(pandas_doubles):
    return [pd_to_spark(series) for series in pandas_doubles]
Beispiel #5
0
def spark_integers(pandas_integers):
    return [pd_to_spark(series) for series in pandas_integers]
Beispiel #6
0
def spark_strings(pandas_strings):
    return [pd_to_spark(series) for series in pandas_strings]
Beispiel #7
0
def spark_natural_language(pandas_natural_language):
    return [pd_to_spark(series) for series in pandas_natural_language]
Beispiel #8
0
def spark_categories(pandas_categories):
    return [pd_to_spark(series) for series in pandas_categories]
Beispiel #9
0
def bad_spark_emails(bad_pandas_emails):
    return [pd_to_spark(series) for series in bad_pandas_emails]
Beispiel #10
0
def spark_emails(pandas_emails):
    return [pd_to_spark(series) for series in pandas_emails]