You can access underlying RDD
and map over it
df.rdd.map(lambda r: r.zip_code).collect()
You can also use select
if you don't mind results wrapped using Row
objects:
df.select('zip_code').collect()
Finally, if you simply want to inspect content then show
method should be enough:
df.select('zip_code').show()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…