Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

amazon.rs 564 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  1. //! Structs defining Amazon data sets.
  2. use serde::{Serialize, Deserialize};
  3. use crate::arrow::*;
  4. /// A rating as described in a source CSV file.
  5. #[derive(Serialize, Deserialize)]
  6. pub struct SourceRating {
  7. pub user: String,
  8. pub asin: String,
  9. pub rating: f32,
  10. pub timestamp: i64,
  11. }
  12. /// Structure for scanned ratings.
  13. ///
  14. /// This data structure is serialized to `ratings.parquet` in the Amazon directories.
  15. #[derive(ArrowField, Serialize, Deserialize)]
  16. pub struct RatingRow {
  17. pub user: i32,
  18. pub asin: String,
  19. pub rating: f32,
  20. pub timestamp: i64,
  21. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...