parameters: (self)
docstring: Writes file-wise coverage to a CSV file.
docstring_summary: Writes file-wise coverage to a CSV file.
docstring_tokens: Writes file - wise coverage to a CSV file .
function: def write_coverage(self):
          """Writes file-wise coverage to a CSV file.
  
          """
          file_nodes = self.xml_root.xpath(XPATHS["doc_var_xpath"])
          self.df = pandas.DataFrame(
                  columns=["DirCoverage", "FileName", "Coverage"] + all_kinds)
  
          self.get_file_coverage(file_nodes)
  
          df_sorted = self.df.sort_values(by=['FileName'])
          #  print(self.df.columns)
          self.df_pruned = CommonUtils.prune_dataframe(df_sorted, [
              "DirCoverage", "FileName", "Coverage"])
  
          self.add_directory_coverage()
          self.df_pruned.to_csv(self.csv, index=False)
function_tokens: def write_coverage ( self ) : file_nodes = self . xml_root . xpath ( XPATHS [ "doc_var_xpath" ] ) self . df = pandas . DataFrame ( columns = [ "DirCoverage" , "FileName" , "Coverage" ] + all_kinds ) self . get_file_coverage ( file_nodes ) df_sorted = self . df . sort_values ( by = [ 'FileName' ] ) #  print(self.df.columns) self . df_pruned = CommonUtils . prune_dataframe ( df_sorted , [ "DirCoverage" , "FileName" , "Coverage" ] ) self . add_directory_coverage ( ) self . df_pruned . to_csv ( self . csv , index = False )