strickvl commited on
Commit
9153547
1 Parent(s): ae1d33c

initial data dump

Browse files
data/article_tags.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:122784240f54e853dfafc6e65d1ad6e56da26f92ef7097e0c403a27d45e9029d
3
+ size 56305
data/articles.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7acfba137078c86721acd42d9efdf789f66b21807d67052f065cb80a4036490
3
+ size 8424321
data/bib_books.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b726cbc3dae237261c59e6e0f0456fcd2c531c47e467ce0efb0c1ea2980a080
3
+ size 15293
data/cities.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:261250474834aae93ddb7cb4fb61ac9d9ab7aaaef37d3234237085dc91f9733d
3
+ size 43172
data/current_events.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab38580fba669ef15a92923749c0b0a7a5227e318bc7a362d428c93c2606c639
3
+ size 11768
data/ethnics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46088fb0b8671abac7b6e0959a1ffdb759d08c369299971b291c0a9d25c65aa4
3
+ size 20005
data/glossary.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f4f7286c61286704f6f99345584d481c9453c155e27cbe3546edad306f7ebc5
3
+ size 43426
data/historical_events.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07b4065de2b89e98c6649b8b38ab1f044a0715abec63abc6878d3915f80377d8
3
+ size 8367
data/issues.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6e8db4a0db4eb657532d9f6c6b24bb83f0fdf66d94e78889cd6f1ffc2329460
3
+ size 27173
data/languages.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10bb657ad91e693569a7092f6de74d426a29e31e557396b67a3e40731d06f3db
3
+ size 26595
data/organisations.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4801abf0b48a8de6feb4f39db6d4281c8df2357f88b514d7dff75a1121703c5d
3
+ size 121920
data/papers.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de9ea7ccb6a79fbb6706569dcc1ae52cae73474b5afe485e09e0055eae2d18d0
3
+ size 76978
data/people.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:737abdfe169a29fd8691b0acb2aaa4d44dcbc67447c4d75fc0545744f03f73a1
3
+ size 255663
data/provinces.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38f9f74612032f69f84783d3de151fb249f80fe40053debc5f5101dee44c5a57
3
+ size 73082
data/region_tree.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:673e91f1feabf66e85f712635ca9f29314d7ba65ea478af914c1043a02fcc95f
3
+ size 28799
data/renderbackgrounder.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8b0cd6707bd4dd24b623410122ffe9a00f692472b214d1f5826ffa235648153
3
+ size 530089
data/top_topics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:900b460c4d006874938f3485c50f726c481f8ae1e8b8173678bf44f20ee1b903
3
+ size 2330
data/topic.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1efa711d06e33ed688c379f4390f7fe429b1fab685146f1045a6a6251579cbfe
3
+ size 3578
data/types.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31f1aedd825433197a26aa90d6e06d24def41be06ded68ccfb739fd5f19e6b0a
3
+ size 2642
scripts/parquet_explorer.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pyarrow.parquet as pq
2
+
3
+ # Path to the Parquet file
4
+ parquet_file = "/Users/strickvl/coding/afghanwire/afghanwire/data/articles.parquet"
5
+
6
+ # Read the Parquet file
7
+ table = pq.read_table(parquet_file)
8
+
9
+ # Check if the 'comment' and 'translatorcomment' columns exist
10
+ column_names = table.schema.names
11
+ if 'comment' in column_names and 'translatorcomment' in column_names:
12
+ # Get the 'comment' and 'translatorcomment' columns
13
+ comments = table.column('comment').to_pylist()
14
+ translator_comments = table.column('translatorcomment').to_pylist()
15
+
16
+ # Print the contents of the columns, skipping null or empty values
17
+ print("Contents of the 'comment' column:")
18
+ for i, comment in enumerate(comments):
19
+ if comment and comment.strip(): # Check if the comment is not null or empty
20
+ print(f"Row {i}: {comment}")
21
+
22
+ # print("\nContents of the 'translatorcomment' column:")
23
+ # for i, translator_comment in enumerate(translator_comments):
24
+ # if translator_comment and translator_comment.strip(): # Check if the translator comment is not null or empty
25
+ # print(f"Row {i}: {translator_comment}")
26
+
27
+ else:
28
+ print("The 'comment' and/or 'translatorcomment' columns do not exist in the Parquet file.")