Showing posts with the label pyspark-sql

[FIXED] Removing non-ascii and special character in pyspark dataframe column

Issue I am reading data from csv files which has about 50 columns, few of the columns(4 to 5) conta…

[FIXED] Spark SQL search inside an array for a struct

Issue My data structure is defined approximately as follows: schema = StructType([ # ... fields s…

[FIXED] PySpark: How to judge column type of dataframe

Issue Suppose we have a dataframe called df . I know there is way of using df.dtypes . However I pr…

[FIXED] Pyspark - Calculate RMSE between actuals and predictions for a groupby - AssertionError: all exprs should be Column

Issue I have a function that calculates RMSE for the preds and actuals of an entire dataframe: de…

[FIXED] Pyspark alter column with substring

Issue Pyspark n00b... How do I replace a column with a substring of itself? I'm trying to remov…

[FIXED] Spatial Join between pyspark dataframe and polygons (geopandas)

Issue Problem : I would like to make a spatial join between: A big Spark Dataframe (500M rows…

[FIXED] how to make parallel connection to teradata using Spark sql

Issue I'm trying to insert Spark DataFrame to Teradata table using spark sql jdbc connection. …