Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit f22b408

Browse files
authored
Merge pull request #723 from PokhodenkoSA/docs-pandas-series
Docs for pandas.Series()
2 parents a2a49c8 + ffa502d commit f22b408

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

docs/source/buildscripts/sdc_object_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
'sdc.hdist',
7070
'sdc.distributed_analysis',
7171
'sdc.hdatetime_ext',
72-
'sdc.hiframes',
7372
'sdc.io.csv_ext',
7473
'sdc.hio',
7574
'sdc.hiframes.join',

sdc/hiframes/pd_series_ext.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,27 @@ def typer(val1, val2):
10461046

10471047
@overload(pd.Series)
10481048
def pd_series_overload(data=None, index=None, dtype=None, name=None, copy=False, fastpath=False):
1049+
"""
1050+
Intel Scalable Dataframe Compiler User Guide
1051+
********************************************
1052+
Pandas API: pandas.Series
1053+
1054+
Limitations
1055+
-----------
1056+
- Parameters ``dtype`` and ``copy`` are currently unsupported by Intel Scalable Dataframe Compiler.
1057+
- Parameter ``dtype`` types iterable and dict are currently unsupported by Intel Scalable Dataframe Compiler.
1058+
1059+
Examples
1060+
--------
1061+
Create Series with data [1, 2, 3] and index ['A', 'B', 'C'].
1062+
1063+
>>> pd.Series([1, 2, 3], ['A', 'B', 'C'])
1064+
1065+
.. seealso::
1066+
1067+
:ref:`DataFrame <pandas.DataFrame>`
1068+
DataFrame constructor.
1069+
"""
10491070

10501071
is_index_none = isinstance(index, types.NoneType) or index is None
10511072

sdc/rewrites/dataframe_constructor.py

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -160,32 +160,13 @@ def _replace_with_arrays(args, stmt, block, func_ir):
160160
@overload(DataFrame)
161161
def pd_dataframe_overload(data, index=None, columns=None, dtype=None, copy=False):
162162
"""
163-
Two-dimensional size-mutable, potentially heterogeneous tabular data
164-
structure with labeled axes (rows and columns). Arithmetic operations
165-
align on both row and column labels. Can be thought of as a dict-like
166-
container for Series objects. The primary pandas data structure.
167-
168-
Parameters
169-
----------
170-
data : dict
171-
Dict can contain Series, arrays, constants, or list-like objects
172-
173-
index : array-like
174-
Index to use for resulting frame. Will default to RangeIndex if
175-
no indexing information part of input data and no index provided
176-
177-
columns : Index or array-like
178-
Column labels to use for resulting frame. Will default to
179-
RangeIndex (0, 1, 2, ..., n) if no column labels are provided
180-
*unsupported*
181-
182-
dtype : dtype, default None
183-
Data type to force. Only a single dtype is allowed. If None, infer
184-
*unsupported*
185-
186-
copy : boolean, default False
187-
Copy data from inputs. Only affects DataFrame / 2d ndarray input
188-
*unsupported*
163+
Intel Scalable Dataframe Compiler User Guide
164+
********************************************
165+
Pandas API: pandas.DataFrame
166+
167+
Limitations
168+
-----------
169+
- Parameters `dtype` and `copy` are currently unsupported by Intel Scalable Dataframe Compiler.
189170
"""
190171

191172
ty_checker = TypeChecker('Method DataFrame')

0 commit comments

Comments
 (0)