This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aiohttp | |
import asyncio | |
import time | |
from pyspark.sql import SparkSession | |
from pyspark.sql.functions import col, collect_list,udf | |
spark = SparkSession.builder.getOrCreate() | |
data = range(1, 10000) | |
df = spark.createDataFrame([(i,) for i in data], ["value"]) | |
grouped_df = ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface ReadonlyArray<T> { | |
map<U>( | |
callbackfn: (value: T, index: number, array: T[]) => U, | |
thisArg?: any | |
): { [K in keyof this]: U }; | |
} | |
type Coord = readonly [number, number, number]; | |
type BiFunction<T> = (a: T, b: T) => T; |
OlderNewer