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.

    Content in all repositories owned by your account will be closed.
    Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
    Report abuse

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

    Report abuse
    mrncstt/README.md
    frompyspark.sqlimportSparkSession, functionsasFfrompyspark.sql.typesimportStructType, StructField, StringType, ArrayTypeclassProfilePipeline:
    def__init__(
    self,
    name="Mariana Costa",
    role="data and more stuff",
    education="B.E. Production Engineering - UFRN (Brazil)",
    interests=("music", "HQ", "data literacy"),
    stack=("PySpark", "Databricks", "Terraform", "SQL", "Python"),
    app_name="mrncstt-profile",
    ):
    self.name=nameself.role=roleself.education=educationself.interests=list(interests)
    self.stack=list(stack)
    self.spark=SparkSession.builder.appName(app_name).getOrCreate()
    defbuild_profile(self):
    schema=StructType([
    StructField("name", StringType()),
    StructField("role", StringType()),
    StructField("education", StringType()),
    StructField("interests", ArrayType(StringType())),
    StructField("stack", ArrayType(StringType())),
    ])
    data= [(self.name, self.role, self.education, self.interests, self.stack)]
    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())
    )
    defstop(self):
    self.spark.stop()
    defprocess_pipeline():
    pipeline=ProfilePipeline()
    pipeline.build_profile()
    display(pipeline.df_profile)
    pipeline.stop()
    process_pipeline()

    display(pipeline.df_profile)

    nameroleeducationinterestsstackupdated_at
    Mariana Costadata and more stuffB.E. Production Engineering - UFRN (Brazil)music, HQ, data literacyPySpark | Databricks | Terraform | SQL | Python2026-05-04

    Latest from the blog

    Accessibility Service wasn't made for this


    Blog - LinkedIn - GitHub

    Pinned Loading

    1. apprendre_le_francaisapprendre_le_francaisPublic

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

      9