Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot run tha last code of< example tracking top traded products> #6

Open
sanguovbobo opened this issue Jun 18, 2023 · 1 comment
Open

Comments

@sanguovbobo
Copy link

when i run the file < example tracking top traded products> last code, it shows: name "date" 'timedelta' is not defined

@sanguovbobo
Copy link
Author

the code is as following:yesterday = date.today() - timedelta(days=1)
comtradeapicall.bulkDownloadTarifflineFile(subscription_key, directory, typeCode='C', freqCode='A', clCode='HS',
period=None, reporterCode=None, decompress=True,
publishedDateFrom=yesterday, publishedDateTo=None)

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[14], line 1
----> 1 yesterday = date.today() - timedelta(days=1)
      2 comtradeapicall.bulkDownloadTarifflineFile(subscription_key, directory, typeCode='C', freqCode='A', clCode='HS',
      3                                               period=None, reporterCode=None, decompress=True,
      4                                               publishedDateFrom=yesterday, publishedDateTo=None)

NameError: name 'date' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant