Snippets Collections
import tkinter as tk
from tkinter import ttk

root = tk.Tk()

# Pack a big frame so, it behaves like the window background
big_frame = ttk.Frame(root)
big_frame.pack(fill="both", expand=True)

# Set the initial theme
root.tk.call("source", "sun-valley.tcl")
root.tk.call("set_theme", "light")

def change_theme():
    # NOTE: The theme's real name is sun-valley-<mode>
    if root.tk.call("ttk::style", "theme", "use") == "sun-valley-dark":
        # Set light theme
        root.tk.call("set_theme", "light")
    else:
        # Set dark theme
        root.tk.call("set_theme", "dark")

# Remember, you have to use ttk widgets
button = ttk.Button(big_frame, text="Change theme!", command=change_theme)
button.pack()

root.mainloop()
#importing Autoviz class
from autoviz.AutoViz_Class import AutoViz_Class#Instantiate the AutoViz class
AV = AutoViz_Class()

df = AV.AutoViz('car_design.csv')
star

Mon Aug 23 2021 03:08:13 GMT+0000 (Coordinated Universal Time)

#python #data #visualisation #graphs #plots #charts #dashboards
star

Thu May 27 2021 02:57:45 GMT+0000 (Coordinated Universal Time)

#python #data #visualisation #graphs #plots #charts #dashboards
star

Thu May 27 2021 02:56:24 GMT+0000 (Coordinated Universal Time) https://towardsdatascience.com/autoviz-automatically-visualize-any-dataset-75876a4eede4

#python #data #visualisation #graphs #plots #charts #dashboards

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension