How to use the apache-arrow.Table.from function in apache-arrow

To help you get started, we’ve selected a few apache-arrow examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github influxdata / giraffe / stories / arrow.stories.tsx View on Github external
      .then(buffer => setData(Table.from([new Uint8Array(buffer)])))
  }, [url])
github grafana / grafana / packages / grafana-data / src / dataframe / arrow / ArrowDataFrame.ts View on Github external
export function base64StringToArrowTable(text: string): Table {
  const b64 = atob(text);
  const arr = Uint8Array.from(b64, c => {
    return c.charCodeAt(0);
  });
  return Table.from(arr);
}
github vega / vega-loader-arrow / src / arrow.js View on Github external
function arrowTable(data) {
  if (data instanceof Table) {
    return data;
  }
  if (data instanceof ArrayBuffer) {
    data = new Uint8Array(data);
  }
  return Table.from(Array.isArray(data) ? data : [data]);
}