Oharra
Baimena behar duzu orria atzitzeko. Direktorioetan saioa has dezakezu edo haiek alda ditzakezu.
Baimena behar duzu orria atzitzeko. Direktorioak alda ditzakezu.
Devuelve un DataFrameNaFunctions para controlar los valores que faltan.
Devoluciones
DataFrameNaFunctions
Ejemplos
df = spark.sql("SELECT 1 AS c1, int(NULL) AS c2")
type(df.na)
# <class '...dataframe.DataFrameNaFunctions'>
Reemplace los valores que faltan como 2.
df.na.fill(2).show()
# +---+---+
# | c1| c2|
# +---+---+
# | 1| 2|
# +---+---+