metrics calculation

This commit is contained in:
Tomasz Łysiak 2019-04-26 12:36:26 +02:00
parent 6a4896c3b5
commit d7e9121587
2 changed files with 6 additions and 7 deletions

View File

@ -1,9 +1,7 @@
import pandas as pd import pandas as pd
# df_data = pd.read_csv('./Infra/wikiniews_results.tsv', sep='\t', index_col=False, header=None, df_data = pd.read_csv('./Infra/wikiniews_results.tsv', sep='\t', index_col=False, header=None,
# skip_blank_lines=False, keep_default_na=False) skip_blank_lines=False, keep_default_na=False)
#
#
# print(df_data)
print('ok ok')
print(df_data)

View File

@ -1,6 +1,7 @@
num_lines = sum(1 for line in open('./Infra/wikiniews_results.tsv')) num_lines = sum(1 for line in open('./Infra/wikiniews_results.tsv'))
print('lines number')
print(num_lines)
file = open('num_lines.txt', 'w') file = open('num_lines.txt', 'w')
file.write(str(num_lines)) file.write(str(num_lines))
file.close() file.close()