You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/snowflake/snowpark/modin/plugin/docstrings/dataframe.py
+118Lines changed: 118 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4206,6 +4206,124 @@ def to_orc():
4206
4206
defto_html():
4207
4207
"""
4208
4208
Render a ``DataFrame`` as an HTML table.
4209
+
4210
+
Parameters
4211
+
----------
4212
+
buf : str, Path or StringIO-like, optional, default None
4213
+
Buffer to write to. If None, the output is returned as a string.
4214
+
4215
+
columns : array-like, optional, default None
4216
+
The subset of columns to write. Writes all columns by default.
4217
+
4218
+
col_space : str or int, list or dict of int or str, optional
4219
+
The minimum width of each column in CSS length units. An int is assumed to be px units..
4220
+
4221
+
header : bool, optional
4222
+
Whether to print column labels, default True.
4223
+
4224
+
index : bool, optional, default True
4225
+
Whether to print index (row) labels.
4226
+
4227
+
na_rep : str, optional, default ‘NaN’
4228
+
String representation of NaN to use.
4229
+
4230
+
formatters : list, tuple or dict of one-param. functions, optional
4231
+
Formatter functions to apply to columns’ elements by position or name. The result of each function must be a unicode string. List/tuple must be of length equal to the number of columns.
Formatter function to apply to columns’ elements if they are floats. This function must return a unicode string and will be applied only to the non-NaN elements, with NaN being handled by na_rep.
4235
+
4236
+
sparsify : bool, optional, default True
4237
+
Set to False for a DataFrame with a hierarchical index to print every multiindex key at each row.
4238
+
4239
+
index_names : bool, optional, default True
4240
+
Prints the names of the indexes.
4241
+
4242
+
justify : str, default None
4243
+
How to justify the column labels. If None uses the option from the print configuration (controlled by set_option), ‘right’ out of the box. Valid values are
4244
+
- left
4245
+
- right
4246
+
- center
4247
+
- justify
4248
+
- justify-all
4249
+
- start
4250
+
- end
4251
+
- inherit
4252
+
- match-parent
4253
+
- initial
4254
+
- unset.
4255
+
4256
+
max_rows : int, optional
4257
+
Maximum number of rows to display in the console.
4258
+
4259
+
max_cols : int, optional
4260
+
Maximum number of columns to display in the console.
4261
+
4262
+
show_dimensions : bool, default False
4263
+
Display DataFrame dimensions (number of rows by number of columns).
4264
+
4265
+
decimal : str, default ‘.’
4266
+
Character recognized as decimal separator, e.g. ‘,’ in Europe.
4267
+
4268
+
bold_rows : bool, default True
4269
+
Make the row labels bold in the output.
4270
+
4271
+
classes : str or list or tuple, default None
4272
+
CSS class(es) to apply to the resulting html table.
4273
+
4274
+
escape : bool, default True
4275
+
Convert the characters <, >, and & to HTML-safe sequences.
4276
+
4277
+
notebook : {True, False}, default False
4278
+
Whether the generated HTML is for IPython Notebook.
4279
+
4280
+
border : int
4281
+
A border=border attribute is included in the opening <table> tag. Default pd.options.display.html.border.
4282
+
4283
+
table_id : str, optional
4284
+
A css id is included in the opening <table> tag if specified.
4285
+
4286
+
render_links : bool, default False
4287
+
Convert URLs to HTML links.
4288
+
4289
+
encoding : str, default “utf-8”
4290
+
Set character encoding.
4291
+
4292
+
Returns
4293
+
-------
4294
+
str or None
4295
+
If buf is None, returns the result as a string. Otherwise returns None.
0 commit comments