MCPcopy Create free account
hub / github.com/Axect/Peroxide / test_slice

Function test_slice

tests/dataframe/dataframe.rs:156–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154
155#[test]
156fn test_slice() {
157 let df = sample_df();
158 let s = df.slice(1, 2);
159 assert_eq!(s.nrow(), 2);
160 assert_eq!(s["x"], Series::new(vec![2, 3]));
161}
162
163#[test]
164fn test_slice_beyond_end() {

Callers

nothing calls this directly

Calls 2

sample_dfFunction · 0.85
sliceMethod · 0.80

Tested by

no test coverage detected