Read CSV Files with Rust CSV Crate 🦀📦 Rust Programming Tutorial for Developers

Ғылым және технология

Reading CSV files is a common need for exchanging data between systems. Although more modern serialization formats are available, such as JSON, some legacy vendor systems still use CSV to this day. Using the open source CSV crate, we can easily read various CSV formats. If you need to customize the behavior of the CSV parser, such as changing the field delimiter, adding CSV headers, or commenting out individual data records, you can use the csv::ReaderBuilder struct to accomplish that. In addition, you can optionally integrate CSV with the serde package to deserialize CSV data rows as Rust struct instances. We'll explore all of these topics in this Rust training video!
🚨📦 Help support this channel - shop through my Amazon storefront!
⬇️⬇️⬇️
www.amazon.com/shop/trevorsul...
⬆️⬆️⬆️
🤯 Rust Programming Playlist 🦀 • Rust Programming Tutor...
📖 Rust std::process module📦➡️ doc.rust-lang.org/std/process...
Visual Studio Code ➡️ code.visualstudio.com
Rust Website ➡️ rust-lang.org
Rustup Installer ➡️ rustup.rs
Rust Docs ➡️ doc.rust-lang.org/book
Please follow me on these other social channels!
➡️ trevorsullivan.net
➡️ github.com/pcgeek86
➡️ / pcgeek86
➡️ / trevorsullivan
➡️ / trevorsoftware
➡️ tiktok.com/pcgeek86
All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement.
#rustlang #rust #rustdev #opensource #software #linux #devops #programming #rusty #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #developer

Пікірлер: 11

  • @TrevorSullivan
    @TrevorSullivan9 ай бұрын

    🚨📦 Help support this channel - shop through my Amazon storefront! ⬇⬇⬇ www.amazon.com/shop/trevorsullivan ⬆⬆⬆

  • @carlvogel8533
    @carlvogel85334 ай бұрын

    Really outstanding - best RDR tutorial I’ve seen

  • @akaibukai
    @akaibukai9 ай бұрын

    Thanks for your videos! This channel is truly underrated!

  • @krystiankoniuszy3952
    @krystiankoniuszy39527 ай бұрын

    In Europe we separate our partials with comma so American 3.14 would be 3,14 in Europe, so more and more you would find a ";" as divider in csv files. Great video btw!

  • @sgremm
    @sgremm5 ай бұрын

    hi, super video. i have the problem that in the csv file the decimal point is a comma instead of point. i become a ParseFloat(ParseFloatError). pls excuse me my bad english

  • @TrevorSullivan

    @TrevorSullivan

    5 ай бұрын

    Thank you for your support! You'll probably need to fix the CSV data before you'll be able to read it with the CSV parser in Rust. You'll have to write a script to parse it yourself and then add double quotes around the decimal value. I would probably use PowerShell for this purpose.

  • @sgremm

    @sgremm

    5 ай бұрын

    thnk you very much, i have write my own Deserialize function and now passed without failure

  • @TrevorSullivan

    @TrevorSullivan

    5 ай бұрын

    @@sgremm that's an even better idea! Great job! God bless you 🦀

  • @Hellbending
    @Hellbending5 ай бұрын

    Actual tutorial starts at 12:30 Can get raw real world data csv’s via kaggle too

  • @TrevorSullivan

    @TrevorSullivan

    5 ай бұрын

    Good idea to grab data from Kaggle.

  • @Hellbending

    @Hellbending

    5 ай бұрын

    @@TrevorSullivan when I was learning pandas (python) I used a couple of them; things like phone purchases based on ages and country or something and top Spotify artists of 2024 - Funnily enough hearing that rust handles data as bytes first - string second was kind of amusing to me because I ran Into a UTF-8 encoding issue with pandas that I had to solve by passing it as bytes anyway lol

Келесі