Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some bug fixes for doc strings #754

Merged
merged 4 commits into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions verticapy/_config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
=========

Expand Down
2 changes: 1 addition & 1 deletion verticapy/jupyter/extensions/chart_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions verticapy/sql/geo/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
12 changes: 6 additions & 6 deletions verticapy/sql/insert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand All @@ -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,
)

Expand Down