I'm reading data with the same options multiple times. Is there a way to avoid duplicating common DataFrameReader options and somehow initialize them separately to use them on each read later?
metrics_df = spark.read.format("jdbc") \
.option("driver", self.driver) \
.option("url", self.url) \
.option("user", self.username) \
.option("password", self.password) \
.load()