Giter Club home page Giter Club logo

metabase-python's Introduction

> whoami

πŸ‘‹ Hey, there! I'm Charles, a Machine Learning professional from Quebec, Canada πŸ‡¨πŸ‡¦.

I'm currently working at Avidbots where I lead the Machine Learning Platform team. Previously at πŸ€ Dribbble where I lead Data/ML. I'm also working towards a Master’s degree in Data Science at Harvard.

> which [TECH]

> which language

Python Typescript R Go Scala C++

> which framework

Spark PyTorch Dagster FastAPI Flask Ray dbt celery React

> which data-store

Elasticsearch Kafka Neo4j Redis Snowflake PostgreSQL

> which infrastructure

AWS Google Cloud Terraform Docker

> echo $CONTACT

Reach out to me over on my LinkedIn profile.

metabase-python's People

Contributors

chasleslr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

acdameli keleyes

metabase-python's Issues

Add support for all functionality in Card

The Card object currently supports list, create, update, and archive. There is additional functionality in the API that we should support (i.e. POST /api/card/:card-id:/favorite). See docs.

Add DatasetQuery

We should create a class that helps with creating queries as expected by the query argument in Dataset.create() (see POST /api/dataset).

This would, at least, serialize to dict (i.e. DatasetQuery(type='query', 'query'={'database': 1, ...}, ...) -> {'type': 'query', 'query': {'database': 1, ...}, ...}), but ideally help with building valid MBQL.

Add support for name in `Aggregation`

Metabase supports naming aggregations, with the compiled MBQL looking as follows:

[["aggregation-options", ["share", [">", ["field", 9, null], 5]],{name: "My Aggregation", display-name: "My Aggregation"}]]

We should support this in Aggregation subclasses.

Add support for joined filters in `mbql`

Metabase allows filtering on fields from another table joined through a foreign key. It compiles the MBQL for such filter as follows:

["=", ["field", 27, {source-field: 11}], 4]

This differs from a "regular" filter on a direct table field:

["=", ["field", 11, null], 5]

Here, {source-field: 11} represents the fieldID of the foreign key in the local table. For example, if using Orders as the base table with a foreign key userID to Users with a name field that we wanted to filter on:

  • Users.name has a fieldID = 27 in the example above.
  • Orders.userID has a fieldID = 11 in the example above.

We should allow Filter subclasses to filter on fields on foreign tables.

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.