Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

Pandas DataFrame: sparse.to_dense() function

DataFrame - sparse.to_dense() function

The sparse-to_dense() function is used to convert a DataFrame with sparse values to dense.

Syntax:

sparse.to_dense(self)

Returns: DataFrame
A DataFrame with the same values stored as dense arrays.

Example:


Download the Pandas DataFrame Notebooks from here.

Previous: DataFrame - sparse.from_spmatrix() function
Next: DataFrame - from_dict() function