Skip to content

Commit

Permalink
docs: update README code samples for newer versions
Browse files Browse the repository at this point in the history
Rust `deltalake` version 0.17 no longer has `.get_files()`.

Newer pandas versions raise a ValueError when comparing dataframes using
`==`.
  • Loading branch information
jhoekx authored and rtyler committed Feb 25, 2024
1 parent 19835d6 commit 7357098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ write_deltalake("./data/delta", df)
dt = DeltaTable("./data/delta")
df2 = dt.to_pandas()

assert df == df2
assert df.equals(df2)
```

The same table can also be loaded using the core Rust crate:
Expand All @@ -91,7 +91,7 @@ async fn main() -> Result<(), DeltaTableError> {
let table = open_table("./data/delta").await?;

// show all active files in the table
let files = table.get_files();
let files: Vec<_> = table.get_file_uris()?.collect();
println!("{:?}", files);

Ok(())
Expand Down

0 comments on commit 7357098

Please sign in to comment.