Skip to content

Commit 0ebf48a

Browse files
committed
(c) 2025 + many corrections
1 parent 295a9ed commit 0ebf48a

File tree

527 files changed

+579
-590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

527 files changed

+579
-590
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018-2024 Open Text or one of its
1+
# Copyright (c) 2018-2025 Open Text or one of its
22
# affiliates. Licensed under the Apache License,
33
# Version 2.0 (the "License"); You may not use this
44
# file except in compliance with the License.

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199

200200

201201
project = "VerticaPy"
202-
copyright = "2023-2024 OpenText. All rights reserved."
202+
copyright = "2023-2025 OpenText. All rights reserved."
203203
author = "Vertica"
204204
release = "1.1.x"
205205
# -- General configuration ---------------------------------------------------

docs/source/contribution_guidelines_code_auto_doc.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ Code blocks can be added using the code-clock directive. Always remember to leav
351351
352352
Code execution
353353

354-
In order to execute and display certain, we can use the ipython directive. Note that you will have to install and import the two extensions inside the conf file while using with sphinx: IPython.sphinxext.ipython_directive, IPython.sphinxext.ipython_console_highlighting
354+
In order to execute and display certain, we can use the ipython directive. Note that you will have to install and import the two extensions inside the conf file while using with sphinx: ``IPython.sphinxext.ipython_directive`` , IPython.sphinxext.ipython_console_highlighting
355355

356356
To execute and display line of code use the following syntax:
357357

@@ -416,7 +416,7 @@ Code block with Suppressed code
416416
print(vpp.vDataFrame({"a":[1,2,3]}))
417417
418418
419-
Though both examples produce the same result but there are suggested use-cases for each. In cases where you have to import a lot of supporting libraries you can use the directive method, and in cases where you only need to skip one line, then pseudo-directive (@suppress) is preferred.
419+
Though both examples produce the same result but there are suggested use-cases for each. In cases where you have to import a lot of supporting libraries you can use the directive method, and in cases where you only need to skip one line, then pseudo-directive ( ``@suppress`` ) is preferred.
420420

421421

422422
Plotting Using matplotlib
@@ -497,7 +497,7 @@ Plotting VerticaPy plot
497497
Advanced Output
498498
----------------
499499

500-
If we want to produce advanced output like the VerticaPy vDataFrame output or some other advanced graphics then we can use the following methodology:
500+
If we want to produce advanced output like the VerticaPy :py:mod:`~verticapy.vDataFrame` output or some other advanced graphics then we can use the following methodology:
501501

502502
(1) Create the html representation of the image
503503

docs/source/contribution_guidelines_code_auto_doc_render.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
Render your doc-string
55
=======================
66

7-
8-
9-
107
You can either use the `sphinx documentation page <https://www.sphinx-doc.org/en/master/usage/quickstart.html>`_
118
to setup sphinx in your system. Or you can follow the below simple steps that give you the opportunity to test just one specific file. 
129

@@ -38,9 +35,9 @@ Build the html pages by running the below command while inside the docs director
3835
3936
make html
4037
41-
Once the build is complete, you can navigate to the build/html directory. There open the index.html in any browser to view your resulting documentation page.
38+
Once the build is complete, you can navigate to the ``build/html`` directory. There open the index.html in any browser to view your resulting documentation page.
4239

43-
If you want to make changes then make changes to your test_file.py and then clean the files using:
40+
If you want to make changes then make changes to your ``test_file.py`` and then clean the files using:
4441
.. code-block:: shell
4542
4643
make clean

docs/source/contribution_guidelines_code_example.rst

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Example
66

77

88

9-
The vDataFrame a powerful Python object that lies at the heart of VerticaPy. vDataFrames consist of vColumn objects that represent columns in the dataset.
9+
The vDataFrame a powerful Python object that lies at the heart of VerticaPy. :py:mod:`~verticapy.vDataFrame` consist of :py:mod:`~verticapy.vDataColumn` objects that represent columns in the dataset.
1010

11-
You can find all vDataFrame's methods inside the folder verticapy/core/vdataframe. Note that similar methods have been clubbed together inside one module/file. For examples, all methods pertaining to aggregates are in the '_aggregate.py' file.
11+
You can find all :py:mod:`~verticapy.vDataFrame` methods inside the folder ``verticapy/core/vdataframe`` . Note that similar methods have been clubbed together inside one module/file. For examples, all methods pertaining to aggregates are in the ``_aggregate.py`` file.
1212

1313

14-
You can define any new vDataFrame method inside these modules depending on the nature of the method. The same applies to vColumns. You can use any of the developed classes to inherit properties.
14+
You can define any new :py:mod:`~verticapy.vDataFrame` method inside these modules depending on the nature of the method. The same applies to :py:mod:`~verticapy.vDataColumn` . You can use any of the developed classes to inherit properties.
1515

16-
When defining a function, you should specify the 'type' hints for every variable:
16+
When defining a function, you should specify the ``type`` hints for every variable:
1717

1818
- For variables of multiple types, use the Union operator.
1919
- For variables that are optional, use the Optional operator.
@@ -47,14 +47,14 @@ Be sure to write a detailed description for each function that explains how it w
4747
----------
4848
columns: SQLColumns
4949
List of the vDataColumns names.
50-
max_cardinality: int / tuple, optional
50+
max_cardinality: int | tuple, optional
5151
Maximum number of distinct elements for
5252
vDataColumns 1 and 2 to be used as
5353
categorical. For these elements, no h
5454
is picked or computed.
5555
If of type tuple, represents the
5656
'max_cardinality' of each column.
57-
h: int / tuple, optional
57+
h: int | tuple, optional
5858
Interval width of the bar. If empty, an
5959
optimized h will be computed.
6060
If of type tuple, it must represent each
@@ -78,31 +78,31 @@ Important: the vDataFrame.get_columns() and vDataFrame.format_colnames() functio
7878
7979
8080
81-
Use the \_genSQL method to get the current vDataFrame relation.
81+
Use the :py:func:`~verticapy.vDataFrame.current_relation` method to get the current :py:mod:`~verticapy.vDataFrame` relation.
8282

8383
.. ipython:: python
8484
85-
titanic._genSQL()
85+
titanic.current_relation()
8686
8787
88-
And the \_executeSQL\_ function to execute a SQL query.
88+
And the ``_executeSQL`` function to execute a SQL query.
8989

9090
.. ipython:: python
9191
9292
from verticapy._utils._sql._sys import _executeSQL
9393
_executeSQL(f"SELECT * FROM {titanic._genSQL()} LIMIT 2")
9494
9595
96-
The result of the query is accessible using one of the methods of the 'executeSQL' parameter.
96+
The result of the query is accessible using one of the methods of the ``_executeSQL`` parameter.
9797

9898
.. ipython:: python
9999
100100
_executeSQL(f"SELECT * FROM {titanic._genSQL()} LIMIT 2",method="fetchall")
101101
102102
103-
The @save_verticapy_logs decorator saves information about a specified VerticaPy method to the QUERY_PROFILES table in the Vertica database. You can use this to collect usage statistics on methods and their parameters.
103+
The ``@save_verticapy_logs`` decorator saves information about a specified VerticaPy method to the ``QUERY_PROFILES`` table in the Vertica database. You can use this to collect usage statistics on methods and their parameters.
104104

105-
For example, to create a method to compute the correlations between two vDataFrame columns:
105+
For example, to create a method to compute the correlations between two :py:mod:`~verticapy.vDataFrame` columns:
106106

107107
.. code-block:: python
108108
@@ -114,14 +114,14 @@ For example, to create a method to compute the correlations between two vDataFra
114114
# Describe the function
115115
"""
116116
---------------------------------------------------------------------------
117-
Computes the Pearson Correlation Coefficient of the two input vColumns.
117+
Computes the Pearson Correlation Coefficient of the two input vDataColumns.
118118
119119
Parameters
120120
----------
121121
column1: str
122-
Input vColumn.
122+
Input vDataColumn.
123123
column2: str
124-
Input vColumn.
124+
Input vDataColumn.
125125
126126
Returns
127127
-------
@@ -146,25 +146,25 @@ For example, to create a method to compute the correlations between two vDataFra
146146
# Return the result
147147
return result
148148
149-
Same can be done with vColumn methods.
149+
Same can be done with :py:mod:`~verticapy.vDataColumn` methods.
150150

151151
.. code-block:: python
152152
153-
# Example Method for a vColumn
153+
# Example Method for a vDataColumn
154154
155155
# Add types hints + @save_verticapy_logs decorator
156156
@save_verticapy_logs
157157
def pearson(self, column: str,):
158158
# Describe the function
159159
"""
160160
---------------------------------------------------------------------------
161-
Computes the Pearson Correlation Coefficient of the vColumn and the input
162-
vColumn.
161+
Computes the Pearson Correlation Coefficient of the vDataColumn and the input
162+
vDataColumn.
163163
164164
Parameters
165165
----------
166166
column: str
167-
Input vColumn.
167+
Input vDataColumn.
168168
169169
Returns
170170
-------
@@ -177,18 +177,17 @@ Same can be done with vColumn methods.
177177
"""
178178
# Format the column
179179
column1 = self.parent.format_colnames([column])[0]
180-
# Get the current vColumn name
180+
# Get the current vDataColumn name
181181
column2 = self.alias
182182
# Get the current vDataFrame relation
183183
table = self.parent._genSQL()
184184
# Create the SQL statement - Label the query when possible
185-
query = f"SELECT /*+LABEL(vColumn.pearson)*/ CORR({column1}, {column2}) FROM {table};"
185+
query = f"SELECT /*+LABEL(vDataColumn.pearson)*/ CORR({column1}, {column2}) FROM {table};"
186186
# Execute the SQL query and get the result
187187
result = executeSQL(query,
188188
title = "Computing Pearson coefficient",
189189
method="fetchfirstelem")
190190
# Return the result
191191
return result
192192
193-
194-
Functions will work exactly the same.
193+
Functions will work exactly the same.

docs/source/contribution_guidelines_code_misc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Every file in this project must use the following Apache 2.0 header (with the ap
2222
.. code-block:: python
2323
2424
"""
25-
Copyright (c) 2018-2023 Open Text or one of its
25+
Copyright (c) 2018-2025 Open Text or one of its
2626
affiliates. Licensed under the Apache License,
2727
Version 2.0 (the "License"); You may not use this
2828
file except in compliance with the License.

docs/source/whats_new_v1_1_0.rst

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
Version 1.1.0
55
===============
66

7-
This release encompasses all the features introduced in 1.0.0 (see :ref:`whats_new_v1_0_0`)
8-
and introduces additional functionalities along with more precise docstrings.
7+
This release encompasses all the features introduced in ``1.0.0`` (see :ref:`whats_new_v1_0_0`) and introduces additional functionalities along with more precise docstrings.
98

109
Options
1110
--------
1211

1312
:py:func:`~verticapy.set_option` function has more options:
1413
- ``max_cellwidth``: Maximum width of any VerticaPy table's cell.
1514
- ``max_tableheight``: Maximum height of VerticaPy tables.
16-
- ``theme``: Theme used to display the VerticaPy objects ('light', 'dark' or 'sphinx').
15+
- ``theme``: Theme used to display the VerticaPy objects (``light``, ``dark`` or ``sphinx``).
1716
- ``verbosity``: This will set the amount of information to display while executing VerticaPy functions.
1817

1918
.. note::
@@ -35,9 +34,7 @@ PLS Regression
3534

3635
Partial Least Squares (PLS) regression has been added to VerticaPy.
3736

38-
This integration will enhance VerticaPy's analytics capabilities,
39-
particularly benefiting Vertica customers who have expressed interest
40-
in utilizing PLS regression.
37+
This integration will enhance VerticaPy's analytics capabilities, particularly benefiting Vertica customers who have expressed interest in utilizing PLS regression.
4138

4239
For more details, please look at
4340
:py:mod:`~verticapy.machine_learning.vertica.linear_model.PLSRegression`
@@ -62,59 +59,57 @@ Example use:
6259
6360
.. note::
6461

65-
All the ML models that were introduced in version 1.0.x are also supported in version 1.1.x.
62+
All the ML models that were introduced in version ``1.0.x`` are also supported in version ``1.1.x`` .
6663
___________
6764

6865
Performance
6966
------------
7067

71-
``QueryProfiler`` has been greatly supplemented in this release:
68+
:py:class:`~verticapy.performance.vertica.qprof.QueryProfiler` has been greatly supplemented in this release:
7269

7370
QueryProfilerInterface
7471
+++++++++++++++++++++++
7572

7673
Now we have added the functionality of a ``session_control_param`` parameter.
7774
This allows users to enter the alter session SQL before profiling the queries.
7875

79-
8076
QueryProfilerInterface
8177
+++++++++++++++++++++++
8278

83-
8479
- Added many more metrics for the profiled queries such as:
8580

86-
- rows_filtered_sip
87-
- container_rows_filtered_sip
88-
- container_rows_pruned_sip
81+
- ``rows_filtered_sip``
82+
- ``container_rows_filtered_sip``
83+
- ``container_rows_pruned_sip``
8984

9085
and more...
9186

9287
- There is a new tab which helps you select particular tooltips from any select path id.
93-
- A new tab also highlights if there are any non-default ``SESSION PARAMETERS``.
88+
- A new tab also highlights if there are any non-default ``SESSION PARAMETERS`` .
9489
- Improved the efficiency of plotting the tree by chaching results.
9590

9691
QueryProfilerComparison
9792
++++++++++++++++++++++++
9893

99-
- :py:class:`~verticapy.performance.vertica.qprof.QueryProfilerComparison` class offers an extended set of functionalities, enabling the creation of complex trees with multiple metrics.
94+
- :py:class:`~verticapy.performance.vertica.qprof_interface.QueryProfilerComparison` class offers an extended set of functionalities, enabling the creation of complex trees with multiple metrics.
10095

10196
.. code-block:: python
10297
10398
from verticapy.performance.vertica import QueryProfilerInterface
10499
105100
qprof_interface_1 = QueryProfilerInterface(
106-
key_id='key_1',
107-
target_schema='schema_1',
108-
)
101+
key_id = "key_1",
102+
target_schema = "schema_1",
103+
)
109104
110105
qprof_interface_2 = QueryProfilerInterface(
111-
key_id='key_2',
112-
target_schema='schema_1',
113-
)
106+
key_id = "key_2",
107+
target_schema = "schema_1",
108+
)
114109
115110
from verticapy.performance.vertica import QueryProfilerComparison
116111
117-
qprof_compare = QueryProfilerComparison(qprof_interface_1,qprof_interface_2)
112+
qprof_compare = QueryProfilerComparison(qprof_interface_1, qprof_interface_2)
118113
119114
qprof_compare.get_qplan_tree()
120115
@@ -132,6 +127,4 @@ Deprecations
132127

133128
Because of the re-structuring of VerticaPy, some previous imports will not work.
134129

135-
Please look at the latest doc for the up-to-date imports.
136-
137-
130+
Please look at the latest doc for the up-to-date imports.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2018-2023 Open Text or one of its
2+
Copyright (c) 2018-2025 Open Text or one of its
33
affiliates. Licensed under the Apache License,
44
Version 2.0 (the "License"); You may not use this
55
file except in compliance with the License.

verticapy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2018-2024 Open Text or one of its
2+
Copyright (c) 2018-2025 Open Text or one of its
33
affiliates. Licensed under the Apache License,
44
Version 2.0 (the "License"); You may not use this
55
file except in compliance with the License.

verticapy/_config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2018-2024 Open Text or one of its
2+
Copyright (c) 2018-2025 Open Text or one of its
33
affiliates. Licensed under the Apache License,
44
Version 2.0 (the "License"); You may not use this
55
file except in compliance with the License.

verticapy/_config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2018-2024 Open Text or one of its
2+
Copyright (c) 2018-2025 Open Text or one of its
33
affiliates. Licensed under the Apache License,
44
Version 2.0 (the "License"); You may not use this
55
file except in compliance with the License.

verticapy/_config/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2018-2024 Open Text or one of its
2+
Copyright (c) 2018-2025 Open Text or one of its
33
affiliates. Licensed under the Apache License,
44
Version 2.0 (the "License"); You may not use this
55
file except in compliance with the License.

verticapy/_help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2018-2024 Open Text or one of its
2+
Copyright (c) 2018-2025 Open Text or one of its
33
affiliates. Licensed under the Apache License,
44
Version 2.0 (the "License"); You may not use this
55
file except in compliance with the License.

verticapy/_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2018-2024 Open Text or one of its
2+
Copyright (c) 2018-2025 Open Text or one of its
33
affiliates. Licensed under the Apache License,
44
Version 2.0 (the "License"); You may not use this
55
file except in compliance with the License.

verticapy/_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2018-2024 Open Text or one of its
2+
Copyright (c) 2018-2025 Open Text or one of its
33
affiliates. Licensed under the Apache License,
44
Version 2.0 (the "License"); You may not use this
55
file except in compliance with the License.

verticapy/_utils/_display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2018-2024 Open Text or one of its
2+
Copyright (c) 2018-2025 Open Text or one of its
33
affiliates. Licensed under the Apache License,
44
Version 2.0 (the "License"); You may not use this
55
file except in compliance with the License.

0 commit comments

Comments
 (0)