Skip to content

Commit d9f6fd5

Browse files
committed
Fix variable name clash.
1 parent c4aa6e3 commit d9f6fd5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

hbase/sesion5.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -655,12 +655,12 @@
655655
"outputs": [],
656656
"source": [
657657
"with hbasecon.connection() as connection:\n",
658-
" comments = connection.table('comments')\n",
659-
" posts = connection.table('posts')\n",
658+
" comments_table = connection.table('comments')\n",
659+
" posts_table = connection.table('posts')\n",
660660
"\n",
661-
" with posts.batch(batch_size=500) as bp:\n",
661+
" with posts_table.batch(batch_size=500) as bp:\n",
662662
" # Hacer un scan de la tabla\n",
663-
" for key, data in comments.scan():\n",
663+
" for key, data in comments_table.scan():\n",
664664
" comment = {b'comments:' + d.split(b':')[1] + b\"_\" + key : data[d]\n",
665665
" for d in data.keys()}\n",
666666
" bp.put(data[b'rawdata:PostId'], comment)"

hbase/sesion6.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,12 @@
664664
"outputs": [],
665665
"source": [
666666
"with hbasecon.connection() as connection:\n",
667-
" comments = connection.table('comments')\n",
668-
" posts = connection.table('posts')\n",
667+
" comments_table = connection.table('comments')\n",
668+
" posts_table = connection.table('posts')\n",
669669
"\n",
670-
" with posts.batch(batch_size=500) as bp:\n",
670+
" with posts_table.batch(batch_size=500) as bp:\n",
671671
" # Hacer un scan de la tabla\n",
672-
" for key, data in comments.scan():\n",
672+
" for key, data in comments_table.scan():\n",
673673
" comment = {b'comments:' + d.split(b':')[1] + b\"_\" + key : data[d]\n",
674674
" for d in data.keys()}\n",
675675
" bp.put(data[b'rawdata:PostId'], comment)"

0 commit comments

Comments
 (0)