Polars is Now in R (Faster Data and Time Series Analysis) 📈

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024

Комментарии • 24

  • @RenatoVargas
    @RenatoVargas 2 месяца назад +2

    I just learned of the existence of the tidypolars package (from the R polars readme itself), which uses polars under the hood to "enable users to keep their existing tidyverse code while using polars in the background to benefit from large performance gains." That way, you can avoid going back and forth converting to tibble.

  • @RenatoVargas
    @RenatoVargas 2 месяца назад +1

    I was looking forward to this library. Thank you for sharing.

  • @Dreaming-11
    @Dreaming-11 21 день назад

    Is there any advantage over data.table package?

  • @gonzarizzo
    @gonzarizzo 2 месяца назад

    Hello! Thank you for the content! I’m curious about which is the rstudio theme you are using. Could you share it? Thanks!

    • @BusinessScience
      @BusinessScience  2 месяца назад

      Thanks! I believe it’s one of the dark themes that comes with RStudio

  • @exshenanigan2333
    @exshenanigan2333 2 месяца назад +11

    You can't tell me they didn't name it "PolaRs"

    • @PedroOliveira-ez2ni
      @PedroOliveira-ez2ni 2 месяца назад +3

      They missed the opportunity of doing something extremely funny 😭😭😭😭

    • @BusinessScience
      @BusinessScience  2 месяца назад

      lol what a missed opportunity 😅

    • @Aaqib..
      @Aaqib.. 2 месяца назад

      😢😂

  • @zephyrthesearchrescuedog8358
    @zephyrthesearchrescuedog8358 2 месяца назад

    Doesn't Hadley recommend the base pipe instead now? |>

    • @BusinessScience
      @BusinessScience  2 месяца назад

      No idea. The base pipe has some limitations. Like not working with the dot operator. So I stick with what works. No need to complicate it by switching without a benefit (and possibly breaking code)

  • @torispadewtd5494
    @torispadewtd5494 2 месяца назад

    🔥🔥🔥

  • @krajco252
    @krajco252 2 месяца назад

    Warning in install.packages :
    package ‘polars’ is not available (for R version 3.5.3) :( unlucky

    • @BusinessScience
      @BusinessScience  2 месяца назад

      Polars is not on CRAN. You’ll need to install with GitHub.

  • @ArneHenningsen
    @ArneHenningsen 2 месяца назад

    BTW: ‘polars’ is a *package*, not a library…

    • @BusinessScience
      @BusinessScience  2 месяца назад +2

      No it’s a library.

    • @ArneHenningsen
      @ArneHenningsen 2 месяца назад

      @@BusinessScience Well, the library() command loads an R *package* (e.g., the 'polars' package), which must be available in a library (tree) and which may link to (shared/dynamic/static) libraries, as explained in the introduction to the official R documentation "Writing R Extensions": "A package is a directory of files which extend R, a source package (the master files of a package), or a tarball containing the files of a source package, or an installed package, the result of running R CMD INSTALL on a source package. On some platforms (notably macOS and ‘x86_64’ Windows) there are also binary packages, a zip file or tarball containing the files of an installed package which can be unpacked rather than installing from sources.
      A package is not1 a library. The latter is used in two senses in R documentation.
      A directory into which packages are installed, e.g. /usr/lib/R/library: in that sense it is sometimes referred to as a library directory or library tree (since the library is a directory which contains packages as directories, which themselves contain directories).
      That used by the operating system, as a shared, dynamic or static library or (especially on Windows) a DLL, where the second L stands for ‘library’. Installed packages may contain compiled code in what is known on Unix-alikes as a shared object and on Windows as a DLL. The concept of a shared library (dynamic library on macOS) as a collection of compiled code to which a package might link is also used, especially for R itself on some platforms. On most platforms these concepts are interchangeable (shared objects and DLLs can both be loaded into the R process and be linked against), but macOS distinguishes between shared objects (extension .so) and dynamic libraries (extension .dylib)."
      cran.r-project.org/doc/manuals/R-exts.html

    • @joshstat8114
      @joshstat8114 2 месяца назад

      @@BusinessScience to be more precise, a NAMESPACE and a module

  • @joshstat8114
    @joshstat8114 2 месяца назад +1

    Yes, I really like Polars now and made me dislike Pandas, and that's because Polars has more readable syntaxes than Pandas, no I never like Pandas from the start. Maybe you can try tidypolars.