diff --git a/verticapy/_config/config.py b/verticapy/_config/config.py index beada990b..687fe73a1 100755 --- a/verticapy/_config/config.py +++ b/verticapy/_config/config.py @@ -393,6 +393,17 @@ def set_option(key: str, value: Any = None) -> None: @savefig _config_config_set_option_hist.png titanic.hist(["pclass", "survived"]) + .. warning:: + + This can be unstable if not enough colors are provided. It is advised to + use the plotting library color options to switch colors. + + .. ipython:: python + :suppress: + + set_option("colors", None) + + Utilities ========= diff --git a/verticapy/jupyter/extensions/chart_magic.py b/verticapy/jupyter/extensions/chart_magic.py index abb1ca35e..92d494ec6 100644 --- a/verticapy/jupyter/extensions/chart_magic.py +++ b/verticapy/jupyter/extensions/chart_magic.py @@ -356,7 +356,7 @@ def chart_magic( .. ipython:: python :suppress: - %load_ext verticapy.chart + %load_ext verticapy.hchart Run the following to load some sample datasets. Once loaded, these datasets are stored in the 'public' schema. You can change the target schema with the diff --git a/verticapy/sql/geo/index.py b/verticapy/sql/geo/index.py index 593e960a8..8055bc58c 100755 --- a/verticapy/sql/geo/index.py +++ b/verticapy/sql/geo/index.py @@ -274,6 +274,7 @@ def rename_index(source: str, dest: str, overwrite: bool = False) -> bool: :file: SPHINX_DIRECTORY/figures/sql_geo_index_rename_index_1.html .. ipython:: python + :okwarning: # Renames a specific index rename_index("world_polygons", "world_polygons_new") diff --git a/verticapy/sql/insert.py b/verticapy/sql/insert.py index 10b47dace..b7c709cf4 100755 --- a/verticapy/sql/insert.py +++ b/verticapy/sql/insert.py @@ -84,16 +84,16 @@ def insert_into( insert_into( table_name = "iris", schema = "public", - data = [[3.3, 4.5, 5.6, 7.8, "Iris-setosa"], - [4.3, 4.7, 9.6, 1.8, "Iris-virginica"]], + data = [[1001, 3.3, 4.5, 5.6, 7.8, "Iris-setosa"], + [1002, 4.3, 4.7, 9.6, 1.8, "Iris-virginica"]], ) # copy set to False: multiple inserts insert_into( table_name = "iris", schema = "public", - data = [[3.3, 4.5, 5.6, 7.8, "Iris-setosa"], - [4.3, 4.7, 9.6, 1.8, "Iris-virginica"]], + data = [[1001, 3.3, 4.5, 5.6, 7.8, "Iris-setosa"], + [1002, 4.3, 4.7, 9.6, 1.8, "Iris-virginica"]], copy=False, ) @@ -102,8 +102,8 @@ def insert_into( insert_into( table_name = "iris", schema = "public", - data = [[3.3, 4.5, 5.6, 7.8, "Iris-setosa"], - [4.3, 4.7, 9.6, 1.8, "Iris-virginica"]], + data = [[1001, 3.3, 4.5, 5.6, 7.8, "Iris-setosa"], + [1002, 4.3, 4.7, 9.6, 1.8, "Iris-virginica"]], genSQL=True, )