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

Method to_html

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

Source from the content-addressed store, hash-verified

4043
4044 @derived_from(pd.DataFrame)
4045 def to_html(self, max_rows=5):
4046 # pd.Series doesn't have html repr
4047 data = self._repr_data().to_html(max_rows=max_rows, show_dimensions=False)
4048 n_expr = len({e._name for e in self.walk()})
4049 return get_template("dataframe.html.j2").render(
4050 data=data,
4051 name=self._name,
4052 layers=maybe_pluralize(n_expr, "expression"),
4053 )
4054
4055 @derived_from(pd.DataFrame)
4056 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