Polars: The Super Fast Dataframe Library for Python ... bye bye Pandas?

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 31

  • @ThePyCoach
    @ThePyCoach  ปีที่แล้ว +1

    To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/ThePyCoach/. The first 200 of you will get 20% off Brilliant’s annual premium subscription.

  • @backnine07
    @backnine07 ปีที่แล้ว +2

    great explanation! Thanks so much for your efforts.

  • @mikeyimawcw
    @mikeyimawcw ปีที่แล้ว +1

    I don't see the CSV files you used during the video. Will you also share the Jupyter notebook, please? Thank you for creating and sharing this video.

    • @ThePyCoach
      @ThePyCoach  ปีที่แล้ว +1

      I've just added the link of the files to the description. Since it was a very small tutorial, I didn't upload the code to github, but you can get the same code from my Medium article (link on the description)

    • @mikeyimawcw
      @mikeyimawcw ปีที่แล้ว

      @@ThePyCoach Thank you.

  • @tobiewaldeck7105
    @tobiewaldeck7105 ปีที่แล้ว

    I have installed polars but python crashes at import polars as pl when I'm trying to run it with my pysimplegui application.

  • @reasonforge9997
    @reasonforge9997 ปีที่แล้ว +2

    Its weird seeing the use of & in the filter expressions as a logical and rather than a bitwise and. But realized its because python only supports overloading the bitwise operators with __and__, __or__, and __xor__ methods and there is no way to overload the logical and, or and xor operators.

  • @ularkadutdotnet
    @ularkadutdotnet ปีที่แล้ว +1

    Can I read csv from url using polars?

  • @SvenTeresniak
    @SvenTeresniak 11 หลายเดือนก่อน +1

    benchmarking against Pandas1 is not fair. Because Pandas is moving towars Arrow-backend and everyone should use Pandas 2 with Arrow as storage.

  • @RonaldPostelmans
    @RonaldPostelmans ปีที่แล้ว

    nice video, thanks. Any idea. how i can change the datatype of a column which has a datatime in it but is datatype string. I want to change it to datetime

    • @JustRollin
      @JustRollin ปีที่แล้ว +1

      df = df.with_column(pl.col("date").alias("date_string").cast(pl.Object))
      df = df.with_column(pl.col("date_string").to_datetime(pl.Date32))
      According to chatgpt

    • @azhanisyahputra9867
      @azhanisyahputra9867 ปีที่แล้ว

      @@JustRollin thx to be honest ;)

    • @marco_gorelli
      @marco_gorelli ปีที่แล้ว +1

      @@JustRollin wut? Don't convert to pl.Object. Your code doesn't even work!
      Just do `df.with_columns(pl.col("date_string").str.to_datetime())`

    • @FlannelCamel
      @FlannelCamel 6 หลายเดือนก่อน

      ​@@JustRollin boo, don't regurgitate answers you don't understand and are possibly wrong.

  • @saisushanthvellampalli908
    @saisushanthvellampalli908 ปีที่แล้ว

    How to arrange the columns in this new library as per requirement

  • @aipy5147
    @aipy5147 ปีที่แล้ว

    Simply brilliant! Thank you. Liked & Subd.

  • @andydataguy
    @andydataguy ปีที่แล้ว

    Great video thanks!! ❤

  • @fhkk1
    @fhkk1 10 หลายเดือนก่อน

    Anyone please suggest how to update null values with some string in Polars.

    • @rackstar2
      @rackstar2 8 หลายเดือนก่อน

      if the name of your dataframe is 'df' and the name of the column which may contain nulls is called 'col_a' then this is the code :
      df = df.with_columns(
      pl.col('col_a').fill_null('your string here'')
      )

  • @dfaquino
    @dfaquino ปีที่แล้ว

    Cuando tendrás un curso de Polars en Udemy?

  • @thanomnoimoh9299
    @thanomnoimoh9299 7 หลายเดือนก่อน

    Great Python clip for me!!!

  • @beto.004
    @beto.004 ปีที่แล้ว

    Es básicamente spark?

  • @azwan1992
    @azwan1992 ปีที่แล้ว +2

    Almost similar syntaxes like pyspark

  • @RidingWithGerdas
    @RidingWithGerdas ปีที่แล้ว

    Reminds me of pyspark

  • @iamadataengineer-vb1hi
    @iamadataengineer-vb1hi ปีที่แล้ว

    Bye bye pandas

  • @abdulsametcankaya5915
    @abdulsametcankaya5915 ปีที่แล้ว +12

    I guess this is not informative, it seems like adversiting ;)

    • @nikilkvn
      @nikilkvn ปีที่แล้ว

      yeah...felt the same..

  • @chobblegobbler6671
    @chobblegobbler6671 3 หลายเดือนก่อน

    reading from s3?