• Buddahriffic@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Did taking that picture damage that gun? It doesn’t look like the barrel is parallel to the rest of the frame (or whatever it’s called).

    Or is it deliberately angled upwards to add some automatic bullet drop compensation to the sights?

  • Barx [none/use name]@hexbear.net
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    And there are like 8 software projects dedicated to making pandas wrappers that work with large datasets because this is somehow better than engineers and statisticians learning SQL or some kind of distributed calculations strategy.

    • psud@aussie.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      Compared to other technical skills, SQL to a level needed by a data analyst has to be the easiest. It’s easier than learning Excel

  • QuizzaciousOtter@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Is 600 MB a lot for pandas? Of course, CSV isn’t really optimal but I would’ve sworn pandas happily works with gigabytes of data.

    • gigachad@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      I guess it’s more of a critique of how bad CSV is for storing large data than pandas being inefficient

    • tequinhu@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      It really depends on the machine that is running the code. Pandas will always have the entire thing loaded in memory, and while 600Mb is not a concern for our modern laptops running a single analysis at a time, it can get really messy if the person is not thinking about hardware limitations

      • naught@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Pandas supports lazy loading and can read files in chunks. Hell, even regular ole Python doesn’t need to read the whole file at once with csv

        • tequinhu@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          3 months ago

          I didn’t know about lazy loading, that’s cool!

          Then I guess that the meme doesn’t apply anymore. Though I will state that (from my anedoctal experience) people that can use Panda’s most advanced features* are also comfortable with other data processing frameworks (usually more suitable to large datasets**)

          *Anything beyond the standard groupby - apply can be considered advanced, from the placrs I’ve been

          **I feel the urge to note that 60Mb isn’ lt a large dataset by any means, but I believe that’s beyond the point

    • mvirts@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      It’s more likely you’ll eat up storage when you read a 600mb parquet and try to write it as CSV.

    • marcos@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      Is 600 MB a lot for pandas?

      No, but it’s easy to make a program in Python that doesn’t like it.

    • MoonHawk@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      3 months ago

      What do you mean not optimal? This is quite literally the most popular format for any serious data handling and exchange. One byte per separator and newline is all you need. It is not compressed so allows you to stream as well. If you don’t need tree structure it is massively better than others

      • QuizzaciousOtter@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        I think portability and easy parsing is the only advantage od CSV. It’s definitely good enough (maybe even the best) for small datasets but if you have a lot of data you need a compressed binary format, something like parquet.

      • elmicha@feddit.org
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        But which separator is it, and which line ending? ASCII, UTF-8, UTF-16 or something else? What about quoting separators and line endings? Yes, there is an RFC, but a million programs were made before the RFC and won’t change their ways now.

        Also you can gzip CSV and still stream them.

      • merari42@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Have you heard that there are great serialised file formats like .parquet from appache arrow, that can easily be used in typical data science packages like duckdb or polars. Perhaps it even works with pandas (although do not know it that well. I avoid pandas as much as possible as someone who comes from the R tidyverse and try to use polars more when I work in python, because it often feels more intuitive to work with for me.)

  • Kausta@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    You havent seen anything until you need to put a 4.2gb gzipped csv into a pandas dataframe, which works without any issues I should note.

      • Kausta@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Yeah, it was just a simple example. Although using just pandas (without something like dask) for loading terabytes of data at once into a single dataframe may not be the best idea, even with enough memory.

    • thisfro@slrpnk.net
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      I raise you thousands of gzipped files (total > 20GB) combined into one dataframe. Frankly, my work laptop did not like it all that much. But most basic operations still worked fine tho

  • fadhl3y@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    No, just buy some more RAM. 64Gb is the minimum for a professional data analyst. 128Gb, is the sweet spot.