MCPcopy
hub / github.com/dask/dask / to_html

Method to_html

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

Source from the content-addressed store, hash-verified

4059
4060 @derived_from(pd.DataFrame)
4061 def to_html(self, max_rows=5):
4062 # pd.Series doesn't have html repr
4063 data = self._repr_data().to_html(max_rows=max_rows, show_dimensions=False)
4064 n_expr = len({e._name for e in self.walk()})
4065 return get_template("dataframe.html.j2").render(
4066 data=data,
4067 name=self._name,
4068 layers=maybe_pluralize(n_expr, "expression"),
4069 )
4070
4071 @derived_from(pd.DataFrame)
4072 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