Код: Выделить всё
using Microsoft.AspNetCore.Html;
Formatter.Register((df, writer) =>
{
var headers = new List();
headers.Add(th(i("index")));
headers.AddRange(df.Columns.Select(c => (IHtmlContent) th(c.Name)));
var rows = new List();
var take = 20;
for (var i = 0; i < Math.Min(take, df.Rows.Count); i++)
{
var cells = new List();
cells.Add(td(i));
foreach (var obj in df.Rows[i])
{
cells.Add(td(obj));
}
rows.Add(cells);
}
var t = table(
thead(
headers),
tbody(
rows.Select(
r => tr(r))));
writer.Write(t);
}, "text/html");
Код: Выделить всё
Error: (2,1): error CS0103: The name 'Formatter' does not exist in the current contextКод: Выделить всё
using Microsoft.AspNetCore.Html;
th(i("index"))
Код: Выделить всё
Error: (2,1): error CS0103: The name 'th' does not exist in the current context (2,4): error CS0103: The name 'i' does not exist in the current contextПодробнее здесь: https://stackoverflow.com/questions/783 ... in-jupyter
Мобильная версия