I understand the basics of Python and what is trying to be accomplished The

I understand the basics of python and what is trying

This preview shows page 2 - 3 out of 3 pages.

I understand the basics of Python and what is trying to be accomplished. The first step is to import the mysql.connector as well as the JSON (JavaScript Object Notation). According to Davidson (2019), JSON can store lists, numbers, tubles and dictionaries. In the case of the world_x database, the JSON is storing the Population from Info. Not sure is this is where my issue is that is causing the “Unknown column” error, but I’m pretty sure it is related. Using the ‘cursor.fetchall()’ method, I assumed this would grab all the rows from the query, but that doesn’t seem to be happening. I’m starting to wonder if there is a possible bug within the installed Python or MySQL programs. The current environment that I have been working with is as follows: MySQL 5.7 Command Line MySQL Workbench version 6.3.9 Python version 3.7.4 Operating System: Windows 10 I went as far as uninstalling and reinstalling Python, PIP and connector, but still ran into the same results.
Image of page 2

Subscribe to view the full document.

MODULE 6 CRITICAL THINKING 3 References Davidson, S. (2019). How to use JSON with Python. Rhino Developer Docs. Retrieved from
Image of page 3
  • Winter '17

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes