Giter VIP home page Giter VIP logo

polars's People

Contributors

alexander-beedie avatar borchero avatar braaannigan avatar c-peters avatar cjermain avatar cmdlineluser avatar dandandan avatar dependabot[bot] avatar ghuls avatar ibenpc avatar itamarst avatar jonashaag avatar jorgecarleitao avatar josh avatar magarick avatar marcogorelli avatar marcvanheerden avatar matteosantama avatar mcrumiller avatar mickvangelderen avatar moritzwilksch avatar nameexhaustion avatar orlp avatar petrosbar avatar reswqa avatar ritchie46 avatar ryanrussell avatar stinodego avatar universalmind303 avatar zundertj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

polars's Issues

Sort merge join

Sort merge join can be faster than hash join when Series are sorted and maybe when they are not.

New series from iterator with known capacity

We can currently create a Series with iterator.collect(). This doesn't give you the option to pass a know capacity and can be more expensive that it has to be. Add a constructor for iterators and known capacity.

Python bindings

Not a great priority, but would be nice to create Python bindings with Pyo3

Boolean arithmetic

Arithmetic is now only implemented for numerical types. Add boolean arithmetic with casting on the fly.

Create a Selection trait

instead of df.select(&str), Use a Selection trait that can create a Vec<&str>. Implement for &str, Vec<&str>, (String, String) etc.

Nice project

This is pretty interesting project, shows how powerful things can be built using Rust + Arrow.
A few basic questions regarding your future plans:

  1. There is some overlap across the Polars, ndarray and DataFusion projects. E.g. sum() is implemented by all of them. Do you plan to converge on the long run or is this the intended level of abstraction&separation?
  2. Compared to Pandas, will polars run multi-threaded, using all the cores e.g. using rayon? Like Modin or Dask.
  3. Do you plan to create a Python API (e.g. pyo3)?

Make Utf8 nullable

Currently nullable strings are represented as an empty string. It probably entails more info if we use Option<String>

Support for reading Feather format.

It looks like polars is still in early stages, so it might be too soon for this feature request, but it would be nice if polars can read and write Dataframes to Apache Arrow Feather format.

I currently have some pandas code that reads a Feather file with 25000 columns and 1 milion rows (of float32 ==> 93 GB) on which I need to apply a function on each column:

  • create a random permutation of the same length as the number of rows
  • read a column but access the elements in the order created in the random permutation step (this is to make sure than when argsorting later that tied scores that appear more to the top of the column are not ranked higher
  • argsort that array in reverse
  • undo the random permutation step on the previous array (so we have a ranking for the input column)

The problem with pandas is that pd.read_feather consolidates the data (so it makes a memory copy) as it stores all data in a big numpy array, while Feather should be zero copy, so if polars would support zero copy operations on feather files, it would be great.

As far as I can see, argsort is recently implemented.
I guess the zero copy numpy view would be important too.

import pandas as pd

df_scores__motifs_vs_regions_or_genes = pd.read_feather('motifs_vs_regions_or_genes.scores.feather')

def rank_CRM_scores_and_assign_random_ranking_in_range_for_ties_func(crm_scores_with_ties_for_motif_numpy):
            # Create random permutation so tied scores will have a different ranking each time.
            random_permutations_to_break_ties_numpy = np.random.permutation(crm_scores_with_ties_for_motif_numpy.shape[0])

            rank_column_with_broken_ties_numpy = random_permutations_to_break_ties_numpy[
                (-crm_scores_with_ties_for_motif_numpy)[random_permutations_to_break_ties_numpy].argsort()
            ].argsort().astype(np.int32)

            return rank_column_with_broken_ties_numpy

# Create feature table ranking.
df_ranking__motifs_vs_regions_or_genes = df_scores__motifs_vs_regions_or_genes.apply(
    rank_CRM_scores_and_assign_random_ranking_in_range_for_ties_func,
    axis='index',
    raw=True
)


df_ranking__motifs_vs_regions_or_genes.reset_index(inplace=True)

df_ranking__motifs_vs_regions_or_genes.to_feather(path='motifs_vs_regions_or_genes.rankings.feather')

Series cast

Cast numerical types option. This can be used for checking equality between different types.

ArgUnique

get indexes of unique values in a chunkedarray and series. Can be used to filter a whole dataframe on the unique values of one series.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.