Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

347
Views
Loading vaex dataframe to dash datatable

I am trying to load a dataframe(vaex) to dash datatable and getting following error.

Invalid argument data passed into DataTable with ID "table". Expected an array. Was supplied type object.

Tried the following, is it possible to load vaex dataframe to dash datatable like pandas dataframe.

import vaex
import dash
# import dash_table
from dash import dash_table
import pandas as pd

df = vaex.open('./customer_list_100.csv.hdf5')
app = dash.Dash(__name__)

app.layout = dash_table.DataTable(
    id='table',
    columns=[{"name": i, "id": i} for i in df.columns],
    data=df.to_dict(),
)

if __name__ == '__main__':
    app.run_server(debug=True)

Can anybody help me on this?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

After looking at the vaex docs and testing, it looks like you need to use the code below to get the proper data orientation:

data = df.to_records()

vaex doesn't give you the option to specify an orient arg like pandas, instead, you just use to_records().

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!