Esempio n. 1
0
 def __init__(self, filename):
     TreemapNode.__init__(self, filename)
     if filename.endswith(".csv"):
         self.createFromCSV(filename)
     elif filename.endswith(".xml"):
         self.createFromXML(filename)
     self.MergeSingleChildNodes("/")
Esempio n. 2
0
 def __init__(self, filename, **kwargs):
     TreemapNode.__init__(self,filename)
     self.childseperator = kwargs.get('childseperator', '.')
     self.fieldseperator = kwargs.get('fieldseperator', ',')
     self.createFromCSV(filename)
     self.MergeSingleChildNodes(self.childseperator)