Skip to main content

Copilot to supercharge your notebooks

Project description

code-genie

This library is your copilot for jupyter notebooks

Latest version: 0.1.2

Documentation

Installation

pip install code-genie

Access Token

You need your unique access token to use this library. You can get your access token by signing up here here

Usage

Setting environment variables

On the top of your notebook, set an environment variable called CODE_GENIE_TOKEN as your access token. This can be done in a couple of ways:

Using env magic

%env CODE_GENIE_TOKEN=xxxkeyxxx

Using dotenv

You can use the python-dotenv package.

from dotenv import load_dotenv
load_dotenv("path-to-.env-file")

Pandas data processing

Following is an example to get the number of missing values in each column of a dataframe.

from code_genie import PandasGenie
genie = PandasGenie(instructions=[
    "create a new dataframe which contains the number of missing values in each column",
    "add a column to this dataframe representing the percentage of total points which are missing",
    "sort dataframe in descending order of number of missing items",
    "filter out columns which have no missing values"
    ])
df_missing = genie(df)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

code_genie-0.1.2.tar.gz (54.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

code_genie-0.1.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file code_genie-0.1.2.tar.gz.

File metadata

  • Download URL: code_genie-0.1.2.tar.gz
  • Upload date:
  • Size: 54.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for code_genie-0.1.2.tar.gz
Algorithm Hash digest
SHA256 767816edceb45e3c8935e8ab77e8a7b3eefc27e7df97f24fb99928b3f28cd1b2
MD5 eec4d76063895ccb64d3732ab83b7875
BLAKE2b-256 d1f8dbbd466d505ffc78de0a95ec7542cb69b2acded90b812f844ee1a8999076

See more details on using hashes here.

File details

Details for the file code_genie-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: code_genie-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for code_genie-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b94bc97efed1dbd4475dd58d476782308d2e90b51108aa93b68b2cb4e6bb1a73
MD5 2ad71ed0b2538a8a1a8e4338ba780bba
BLAKE2b-256 ec390907558358750684b5526bb7fbdc3f85a7fb32222cfb33f2b79d9412d765

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page