zvtvz / zvt

modular quant framework.
https://zvt.readthedocs.io/en/latest/
MIT License
3.08k stars 843 forks source link

NameError: name 'get_finance_factor' is not defined #196

Open todaygood opened 2 years ago

todaygood commented 2 years ago

Hi,

I ran the example : In [12]: from zvt.domain import * In [13]: df = get_finance_factor(entity_id='stock_sz_000338',columns=FinanceFactor.important_cols())

In [14]: df.tail() but throw out "NameError: name 'get_finance_factor' is not defined" , My zvt code is zvt master.

foolcage commented 2 years ago

Use these style: {schema}.record_data {schema}.query_data `

from zvt.domain import * FinanceFactor.record_data(entity_id='stock_sz_000338') df = FinanceFacto.query_datar(entity_id='stock_sz_000338',columns=FinanceFactor.important_cols()) `