Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 27, 2021 11:39
Embed
What would you like to do?
dfListingCalendar = dfListingCalendarRaw\
.withColumn("price", regexp_extract(col("price"), "[0-9]+.[0-9]+", 0).cast(DoubleType()))\
.withColumn("adjusted_price", regexp_extract(col("adjusted_price"), "[0-9]+.[0-9]+", 0).cast(DoubleType()))
dfListingCalendar.printSchema()
dfListingCalendar.toPandas()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment