Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
In [1]: %load_ext pytd.pandas_td.ipython

In [2]: %td_use sample_datasets
INFO: import nasdaq
INFO: import www_access

In [3]: nasdaq  # describe table columns in the form of DataFrame
Out[3]: <pytd.pandas_td.ipython.MagicTable at 0x117651908>

magics= {'cell': {}, 'line': {'td_use': 'td_use'}}

registered= True

pytd.pandas_td.ipython.QueryMagics

classpytd.pandas_td.ipython.QueryMagics(shell)[source]

create_job_parser()[source]

parse_job_args(line)[source]

create_query_parser(engine_type)[source]

parse_query_args(engine_typeline)[source]

push_code(codeend='\n')[source]

display_code_block()[source]

build_query(cell)[source]

build_engine(engine_typedatabaseargs)[source]

convert_time(d)[source]

set_index(dindexargs)[source]

pivot(dargs)[source]

post_process(dargs)[source]

run_job(line)[source]

run_query(engine_typelinecell)[source]

td_job(line)

Get job result.

Code Block
%td_job [--pivot] [--plot] [--dry-run] [--verbose]
        [--connection <connection>] [--dropna] [--out <out>]
        [--out-file <out_file>] [--quiet] [--timezone <timezone>]
        job_id