MCPcopy Create free account
hub / github.com/dask/dask / to_html

Method to_html

dask/dataframe/dask_expr/_collection.py:4091–4099  ·  view source on GitHub ↗
(self, max_rows=5)

Source from the content-addressed store, hash-verified

4089
4090 @derived_from(pd.DataFrame)
4091 def to_html(self, max_rows=5):
4092 # pd.Series doesn't have html repr
4093 data = self._repr_data().to_html(max_rows=max_rows, show_dimensions=False)
4094 n_expr = len({e._name for e in self.walk()})
4095 return get_template("dataframe.html.j2").render(
4096 data=data,
4097 name=self._name,
4098 layers=maybe_pluralize(n_expr, "expression"),
4099 )
4100
4101 @derived_from(pd.DataFrame)
4102 def melt(

Callers 3

_repr_html_Method · 0.95
test_to_stringFunction · 0.80
test_df_to_htmlFunction · 0.80

Calls 4

_repr_dataMethod · 0.95
get_templateFunction · 0.90
maybe_pluralizeFunction · 0.90
walkMethod · 0.45

Tested by 2

test_to_stringFunction · 0.64
test_df_to_htmlFunction · 0.64