Frequently asked questions¶
The following lists a set of questions that we have been asked about Kedro in the past. If you have a different question which isn’t answered here, check out GitHub Discussions or talk to the community on the Discord Server.
What is Kedro?¶
Kedro is an open-source Python framework for creating reproducible, maintainable and modular data science code. It borrows concepts from software engineering and applies them to machine-learning code; applied concepts include modularity, separation of concerns and versioning.
For the source code, take a look at the Kedro repository on Github.
Who maintains Kedro?¶
Currently, the core Kedro team consists of Yetunde Dada, Ivan Danov, Richard Westenra, Lorena Balan, Lim Hoang, Jo Stichbury, Merel Theisen, Gabriel Comym, Liam Brummitt, Susanna Wong, Rashida Kanchwala, Joel Schwarzmann, Antony Milne, Jiri Klein, Ignacio Paricio and Hamza Oza.
And last, but not least, all the open-source contributors whose work went into all Kedro releases.
What are the primary advantages of Kedro?¶
If you’re a Data Scientist, then you should be interested in Kedro because it enables you to:
Write cleaner code, so that your Python code is easy to maintain and re-run in future; it does this by applying standardisation and software-engineering best practices
Make a seamless transition from development to production, as you can write quick, throw-away exploratory code and transition to maintainable, easy-to-share, code experiments quickly
Stay current in machine learning operations (MLOps), as Kedro takes care of the principles you need to create data science code that lasts; you’ll always be two steps in front of industry standards
Integrate with your data science workflow, and use tools in the data science ecosystem, like Tensorflow, SciKit-Learn or Jupyter notebooks for experimentation. You can also take advantage of tools to produce for producing quality code like Sphinx (documentation);
flake8(code linting and formatting); and,
If you’re a Machine-Learning Engineer or Data Engineer, then you should be interested in Kedro because:
Standardisation creates efficiency, establishing proper analytics code foundations can save up to 80% of your hours down the road when putting models in production
You can focus on solving problems, not setting up projects, Kedro provides the scaffolding to build more complex data and machine-learning pipelines. There’s a focus on spending less time on the tedious “plumbing” required to maintain analytics code; this means that you have more time to solve new problems
A data-driven framework makes pipelines easy, by permitting data versioning, incremental computing and automatic pipeline running order resolution
It is platform-agnostic, allowing you to choose what compute or platform to run your Kedro workflow; Databricks and products like Kubeflow, Argo, Prefect and Airflow are deployment targets
If you’re a Project Lead, then you should be interested in Kedro because:
It allows for effortless teamwork and an ability to scale analytics across an organisation. Kedro standardises team workflows; the modular structure of Kedro facilitates a higher level of collaboration when teams solve problems together
We stand for no more fire drills. You can remove long delays created because you have to refactor a data science proof of concept into production
You don’t need to start from scratch, standardisation and separation of concerns makes it possible to reuse analytics code
See your project like never before, Kedro’s pipeline visualization plugin lets you see a blueprint of your team’s developing workflows and better collaborate with business stakeholders
How does Kedro compare to other projects?¶
Some of our open-source users have called Kedro, the React or Django for data science code and we think it’s a suitable framing for who we are. We exist to standardise how data science code is created.
Everyone sees the pipeline abstraction in Kedro and gets excited, thinking that we’re similar to orchestrators like Airflow, Luigi, Prefect, Dagster, Flyte, Kubeflow and more. We focus on a different problem, which is the process of authoring pipelines, as opposed to running, scheduling and monitoring them.
The responsibility of “What time will this pipeline run?”, “How do I manage my compute?” and “How will I know if it failed?” is left to the orchestrators. We also have deployment guidelines for using orchestrators as deployment targets and are working in collaboration with the maintainers of some of those tools to make the deployment experience as enjoyable as possible.
What is data engineering convention?¶
Bruce Philp and Guilherme Braccialli at QuantumBlack are the brains behind a layered data-engineering convention as a model of managing data. You can find an in-depth walk through of their convention as a blog post on Medium.
Refer to the following table below for a high level guide to each layer’s purpose
The data layers don’t have to exist locally in the
data folder within your project, but we recommend that you structure your S3 buckets or other data stores in a similar way.
Folder in data
Initial start of the pipeline, containing the sourced data model(s) that should never be changed, it forms your single source of truth to work from. These data models are typically un-typed in most cases e.g. csv, but this will vary from case to case.
Optional data model(s), which are introduced to type your
Domain specific data model(s) containing cleansed, transformed and wrangled data from either
Analytics specific data model(s) containing a set of features defined against the
Analytics specific data model(s) containing all
Stored, serialised pre-trained machine learning models.
Analytics specific data model(s) containing the results generated by the model based on the
Reporting data model(s) that are used to combine a set of
How do I upgrade Kedro?¶
Once Kedro is installed, you can check your version as follows:
To later upgrade Kedro to a different version, simply run:
pip install kedro -U
When migrating an existing project to a newer Kedro version, make sure you also update the
project_version in your
pyproject.toml file from the project root directory or, for projects generated with Kedro<0.17.0, in your
ProjectContext, which is found in
How can I use a development version of Kedro?¶
Important: The development version of Kedro is not guaranteed to be bug-free and/or compatible with any of the stable versions. We do not recommend that you use a development version of Kedro in any production systems. Please install and use with caution.
If you want to try out the latest, most novel functionality of Kedro which has not been released yet, you can run the following installation command:
pip install git+https://github.com/quantumblacklabs/kedro.git@develop
This will install Kedro from the
develop branch of the GitHub repository, which is always the most up to date. This command will install Kedro from source, unlike
pip install kedro which installs from PyPI.
If you want to rollback to the stable version of Kedro, execute the following in your environment:
pip uninstall kedro -y pip install kedro
How can I find out more about Kedro?¶
There are a host of articles, podcasts, talks and Kedro showcase projects in the
Our preferred Kedro-community channel for feedback is through GitHub issues. We update the codebase regularly; you can find news about updates and features in the RELEASE.md file on the Github repository.
How can I cite Kedro?¶
If you’re an academic, Kedro can also help you, for example, as a tool to solve the problem of reproducible research. Find our citation reference on Zenodo.