Skip to content

Commit

Permalink
Merge branch 'docs' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Axect committed Nov 4, 2022
2 parents fd8c9a1 + 40a85a4 commit 4c782d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/structure/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
//! df.push("a", Series::new(vec!['x', 'y', 'z']));
//! df.push("b", Series::new(vec![0, 1, 2]));
//! df.push("c", Series::new(c!(0.1, 0.2, 0.3)));
//! df.write_parquet("example_data/doc_pq.parquet")?;
//! df.write_parquet("example_data/doc_pq.parquet", CompressionOptions::Uncompressed)?;
//!
//! // Read parquet
//! let mut dg = DataFrame::read_parquet("example_data/doc_pq.parquet")?;
Expand Down Expand Up @@ -1832,6 +1832,7 @@ impl WithNetCDF for DataFrame {
}
}

/// To handle parquet format
#[cfg(feature="parquet")]
pub trait WithParquet {
fn write_parquet(&self, file_path: &str, compression: CompressionOptions) -> Result<(), Box<dyn Error>>;
Expand Down

0 comments on commit 4c782d3

Please sign in to comment.