Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all table rows are included in data() #415

Open
rtiagom opened this issue Mar 11, 2024 · 0 comments
Open

Not all table rows are included in data() #415

rtiagom opened this issue Mar 11, 2024 · 0 comments
Labels

Comments

@rtiagom
Copy link

rtiagom commented Mar 11, 2024

    let path = format!("{}/ctryprem.xlsx", "/tmp");
    let workbook: Result<Xlsx<std::io::BufReader<std::fs::File>>, calamine::XlsxError> = open_workbook(path);
    if let Ok(mut workbook) = workbook {
        workbook.load_tables()?;
        let tables = workbook.table_names_in_sheet("ERPs by country");
        println!("Tables loaded");
        println!("Defined Tables: {:?}", tables);
        let table = workbook.table_by_name("Table1")?;
        println!("columns: {:?}", table.columns());
        println!("data {:#?}", table.data());

Missing the last 4 rows. Here's the original file https://www.stern.nyu.edu/~adamodar/pc/datasets/ctryprem.xlsx.

@tafia tafia added the bug label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants