Skip to content
View mrncstt's full-sized avatar
💻
.
💻
.

Block or report mrncstt

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
mrncstt/README.md
from pyspark.sql import SparkSession, functions as F
from pyspark.sql.types import StructType, StructField, StringType, ArrayType


class ProfilePipeline:
    def __init__(self, app_name="mrncstt-profile"):
        self.spark = SparkSession.builder.appName(app_name).getOrCreate()

    def build_profile(self):
        schema = StructType([
            StructField("name", StringType()),
            StructField("role", StringType()),
            StructField("education", StringType()),
            StructField("interests", ArrayType(StringType())),
            StructField("stack", ArrayType(StringType())),
        ])

        data = [(
            "Mariana Costa",
            "data and more stuff",
            "B.E. Production Engineering - UFRN (Brazil)",
            ["music", "HQ", "data literacy", "french"],
            ["PySpark", "Databricks", "Terraform", "SQL", "Python"],
        )]

        self.df_profile = (
            self.spark.createDataFrame(data, schema=schema)
            .withColumn("interests", F.array_join("interests", ", "))
            .withColumn("stack", F.array_join("stack", " | "))
            .withColumn("updated_at", F.current_date())
        )

    def display(self):
        display(self.df_profile)

    def stop(self):
        self.spark.stop()


pipeline = ProfilePipeline()
pipeline.build_profile()
pipeline.display()
pipeline.stop()

display(pipeline.df_profile)

name role education interests stack updated_at
Mariana Costa data and more stuff B.E. Production Engineering - UFRN (Brazil) music, HQ, data literacy, french PySpark | Databricks | Terraform | SQL | Python 2026-03-06

Latest from the blog

Contributing to LanceDB: from Python dict to SQL struct


Blog - LinkedIn - GitHub

Pinned Loading

  1. apprendre_le_francais apprendre_le_francais Public

    Useful stuffs that will help me (and probably you - I hope so) to learn French.

    9