{"id":1158,"date":"2017-08-24T09:03:54","date_gmt":"2017-08-24T13:03:54","guid":{"rendered":"http:\/\/matthannan.net\/blog\/?p=1158"},"modified":"2017-08-24T09:03:54","modified_gmt":"2017-08-24T13:03:54","slug":"mongodb-and-python-in-data-visualization","status":"publish","type":"post","link":"https:\/\/matthannan.net\/blog\/mongodb-and-python-in-data-visualization\/","title":{"rendered":"MongoDB and Python in Data Visualization"},"content":{"rendered":"<p><a href=\"http:\/\/adilmoujahid.com\/posts\/2015\/01\/interactive-data-visualization-d3-dc-python-mongodb\/\" target=\"_blank\" rel=\"noopener\">This<\/a> is an interesting web site discussing the use of Python and MongoDB in data visualization. I am getting very comfortable with Python and I have just started playing with <a href=\"https:\/\/www.mongodb.com\/\" target=\"_blank\" rel=\"noopener\">MongoDB<\/a>, so looking at examples of how I can start to generate data visualizations out of these tools is my next step. On a recent run of my Python script (compiling various csv files into a json format), I found that I am presently over 211 million cycles, and that is just merging the first two files! While playing with the MongoDB, I found that I need to change the values of a certain field from one long string into a list. This is only going to drive up the cycles. Then I have the third file to figure out. This, I think, will be a list of lists of dictionaries. This list will be added as a new key:value in a sub-dictionary within an overall dictionary. Hmmm? Why might I be interested in building a database?<br \/>\n<code>{<\/code><code>{ { [ [ { } ] ] } } }<\/code><br \/>\nI think that is right.<br \/>\nGenetic genealogy: it is more about numbers than census records.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is an interesting web site discussing the use of Python and MongoDB in data visualization. I am getting very comfortable with Python and I have just started playing with MongoDB, so looking at examples of how I can start &hellip; <a href=\"https:\/\/matthannan.net\/blog\/mongodb-and-python-in-data-visualization\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5,244],"tags":[331,332,330,313],"class_list":["post-1158","post","type-post","status-publish","format-standard","hentry","category-geek","category-genealogy","tag-data-visualization","tag-madness","tag-mongodb","tag-python"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2NxlE-iG","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1169,"url":"https:\/\/matthannan.net\/blog\/arduino-uno-fun-and-continuous-learning\/","url_meta":{"origin":1158,"position":0},"title":"Arduino Uno Fun and Continuous Learning","author":"matthannan","date":"23 September 2017","format":false,"excerpt":"So, a million years ago, I bought an Arduino Uno Starter Kit from MakerShed. When it arrived, I tried a tutorial and had fun with the first LED lesson, but the second lesson, which I remember was more focused on programming, left me in the dust. I boxed up the\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2017\/09\/IMG_1056_preview_featured.jpg?fit=628%2C472&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2017\/09\/IMG_1056_preview_featured.jpg?fit=628%2C472&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2017\/09\/IMG_1056_preview_featured.jpg?fit=628%2C472&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1307,"url":"https:\/\/matthannan.net\/blog\/python\/","url_meta":{"origin":1158,"position":1},"title":"Python","author":"matthannan","date":"1 February 2018","format":false,"excerpt":"I am very far behind on this and I have many, many blog posts to write, but this is what I did tonight. I am currently reading \"Automate the Boring Stuff With Python\" (this is basically a required text), taking the Python course on CodeAcademy.com, just about caught up with\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2018\/02\/growthmajorlanguages-1-1024x878.png?fit=770%2C660&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2018\/02\/growthmajorlanguages-1-1024x878.png?fit=770%2C660&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2018\/02\/growthmajorlanguages-1-1024x878.png?fit=770%2C660&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2018\/02\/growthmajorlanguages-1-1024x878.png?fit=770%2C660&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1576,"url":"https:\/\/matthannan.net\/blog\/from-the-real-world-to-the-web\/","url_meta":{"origin":1158,"position":2},"title":"From the Real World to the Web","author":"matthannan","date":"9 April 2019","format":false,"excerpt":"Part of my quest for world domination, er, getting my Raspberry Pi to tell me about things in my basement without my having to actually go down there is just about complete. I bought a temperature and humidity sensor from Adafruit and finally got around to wiring it up and\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2019\/04\/tnhPage.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2019\/04\/tnhPage.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2019\/04\/tnhPage.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2019\/04\/tnhPage.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2019\/04\/tnhPage.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2019\/04\/tnhPage.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":1430,"url":"https:\/\/matthannan.net\/blog\/installing-python-3-6-2-on-raspberry-pi-raspbian\/","url_meta":{"origin":1158,"position":3},"title":"Installing Python 3.6.2 on raspberry pi (raspbian)","author":"matthannan","date":"11 August 2018","format":false,"excerpt":"I want to update to the latest version of Python 3.6.6 on my Raspberry Pi 3B. I do not want my first go with 3.7 to be on a Pi! This Pi will be used in the basement as part of an OpenCV project. Replace 3.6.2 with 3.6.6 and you\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1049,"url":"https:\/\/matthannan.net\/blog\/how-to-run-python-scripts-cpanel-questions\/","url_meta":{"origin":1158,"position":4},"title":"How to run Python scripts (cPanel questions)","author":"matthannan","date":"13 April 2017","format":false,"excerpt":"Source: How to run Python scripts (cPanel questions)","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2302,"url":"https:\/\/matthannan.net\/blog\/modernizing-my-temperature-and-humidity-sensor\/","url_meta":{"origin":1158,"position":5},"title":"Modernizing My Temperature and Humidity Sensor","author":"matthannan","date":"18 September 2021","format":false,"excerpt":"My basement temperature and humidity sensor has been up and running for 2.5 years now with hardly a hiccup at all. But, it is time for an upgrade. I've made some tweaks to the page over the years, but I 've grown less and less happy with the matplotlib implementation.\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2021\/09\/tnhPage_Grafana_InfluxDB-1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2021\/09\/tnhPage_Grafana_InfluxDB-1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2021\/09\/tnhPage_Grafana_InfluxDB-1.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2021\/09\/tnhPage_Grafana_InfluxDB-1.png?resize=700%2C400 2x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2021\/09\/tnhPage_Grafana_InfluxDB-1.png?resize=1050%2C600 3x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2021\/09\/tnhPage_Grafana_InfluxDB-1.png?resize=1400%2C800 4x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts\/1158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/comments?post=1158"}],"version-history":[{"count":1,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts\/1158\/revisions"}],"predecessor-version":[{"id":1160,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts\/1158\/revisions\/1160"}],"wp:attachment":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/media?parent=1158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/categories?post=1158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/tags?post=1158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}