Dataverse
Dataverse copied to clipboard
Issues in Tkinter and Matplotlib Code in Data Visualization
Redundant Imports: import datetime is unnecessary as specific functions are already imported. Global Variable: The global variable count should be defined inside the function. Unclosed MySQL Connection: Add mycon.close() after data fetching to close the connection properly. Mixed Input Methods: Avoid mixing Tkinter GUI inputs with command-line input(). Stick to one method, preferably Tkinter. Repetitive Code: Refactor the plotting logic (plt.bar(), plt.hist(), etc.) into a helper function to avoid redundancy.
Please assign this to me @multiverseweb
@KrishnaMohanty08 this code visibility issue has been fixed and the navbar colors are being changed under #66, so I'm closing this issue. Thanks for your participation.