import pywikibot
from pywikibot.data import api
import pprint
site = pywikibot.Site("test", "wikidata")
 
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-7-3d048d01993f> in <module>()
----> 1 value, uncert, unit = data
      2 value, uncert = float(value), float(uncert)
      3 claim = pywikibot.Claim(repo, property)
      4 unit_item = pywikibot.ItemPage(repo, unit)
      5 entity_helper_string = "http://test.wikidata.org/entity/Q1748".format()

NameError: name 'data' is not defined