Skip to content

Commit c83cfca

Browse files
committed
add notes about parent dataframes
1 parent 5e1dd17 commit c83cfca

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

spec/API_specification/dataframe_api/column_object.py

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ def __eq__(self, other: Self | Scalar) -> Self: # type: ignore[override]
238238
Returns
239239
-------
240240
Column
241+
242+
Notes
243+
-----
244+
`other`'s parent DataFrame must be the same as `self`'s - else,
245+
the operation is unsupported and may vary across implementations.
241246
"""
242247
...
243248

@@ -257,6 +262,11 @@ def __ne__(self, other: Self | Scalar) -> Self: # type: ignore[override]
257262
Returns
258263
-------
259264
Column
265+
266+
Notes
267+
-----
268+
`other`'s parent DataFrame must be the same as `self`'s - else,
269+
the operation is unsupported and may vary across implementations.
260270
"""
261271
...
262272

@@ -274,6 +284,11 @@ def __ge__(self, other: Self | Scalar) -> Self:
274284
Returns
275285
-------
276286
Column
287+
288+
Notes
289+
-----
290+
`other`'s parent DataFrame must be the same as `self`'s - else,
291+
the operation is unsupported and may vary across implementations.
277292
"""
278293
...
279294

@@ -291,6 +306,11 @@ def __gt__(self, other: Self | Scalar) -> Self:
291306
Returns
292307
-------
293308
Column
309+
310+
Notes
311+
-----
312+
`other`'s parent DataFrame must be the same as `self`'s - else,
313+
the operation is unsupported and may vary across implementations.
294314
"""
295315
...
296316

@@ -308,6 +328,11 @@ def __le__(self, other: Self | Scalar) -> Self:
308328
Returns
309329
-------
310330
Column
331+
332+
Notes
333+
-----
334+
`other`'s parent DataFrame must be the same as `self`'s - else,
335+
the operation is unsupported and may vary across implementations.
311336
"""
312337
...
313338

@@ -325,6 +350,11 @@ def __lt__(self, other: Self | Scalar) -> Self:
325350
Returns
326351
-------
327352
Column
353+
354+
Notes
355+
-----
356+
`other`'s parent DataFrame must be the same as `self`'s - else,
357+
the operation is unsupported and may vary across implementations.
328358
"""
329359
...
330360

@@ -343,6 +373,11 @@ def __and__(self, other: Self | bool) -> Self:
343373
-------
344374
Column
345375
376+
Notes
377+
-----
378+
`other`'s parent DataFrame must be the same as `self`'s - else,
379+
the operation is unsupported and may vary across implementations.
380+
346381
Raises
347382
------
348383
ValueError
@@ -365,6 +400,11 @@ def __or__(self, other: Self | bool) -> Self:
365400
-------
366401
Column
367402
403+
Notes
404+
-----
405+
`other`'s parent DataFrame must be the same as `self`'s - else,
406+
the operation is unsupported and may vary across implementations.
407+
368408
Raises
369409
------
370410
ValueError
@@ -382,6 +422,11 @@ def __add__(self, other: Self | Scalar) -> Self:
382422
If Column, must have same length.
383423
"Scalar" here is defined implicitly by what scalar types are allowed
384424
for the operation by the underling dtypes.
425+
426+
Notes
427+
-----
428+
`other`'s parent DataFrame must be the same as `self`'s - else,
429+
the operation is unsupported and may vary across implementations.
385430
386431
Returns
387432
-------
@@ -403,6 +448,11 @@ def __sub__(self, other: Self | Scalar) -> Self:
403448
Returns
404449
-------
405450
Column
451+
452+
Notes
453+
-----
454+
`other`'s parent DataFrame must be the same as `self`'s - else,
455+
the operation is unsupported and may vary across implementations.
406456
"""
407457
...
408458

@@ -420,6 +470,11 @@ def __mul__(self, other: Self | Scalar) -> Self:
420470
Returns
421471
-------
422472
Column
473+
474+
Notes
475+
-----
476+
`other`'s parent DataFrame must be the same as `self`'s - else,
477+
the operation is unsupported and may vary across implementations.
423478
"""
424479
...
425480

@@ -437,6 +492,11 @@ def __truediv__(self, other: Self | Scalar) -> Self:
437492
Returns
438493
-------
439494
Column
495+
496+
Notes
497+
-----
498+
`other`'s parent DataFrame must be the same as `self`'s - else,
499+
the operation is unsupported and may vary across implementations.
440500
"""
441501
...
442502

@@ -454,6 +514,11 @@ def __floordiv__(self, other: Self | Scalar) -> Self:
454514
Returns
455515
-------
456516
Column
517+
518+
Notes
519+
-----
520+
`other`'s parent DataFrame must be the same as `self`'s - else,
521+
the operation is unsupported and may vary across implementations.
457522
"""
458523
...
459524

@@ -475,6 +540,11 @@ def __pow__(self, other: Self | Scalar) -> Self:
475540
Returns
476541
-------
477542
Column
543+
544+
Notes
545+
-----
546+
`other`'s parent DataFrame must be the same as `self`'s - else,
547+
the operation is unsupported and may vary across implementations.
478548
"""
479549
...
480550

@@ -492,6 +562,11 @@ def __mod__(self, other: Self | Scalar) -> Self:
492562
Returns
493563
-------
494564
Column
565+
566+
Notes
567+
-----
568+
`other`'s parent DataFrame must be the same as `self`'s - else,
569+
the operation is unsupported and may vary across implementations.
495570
"""
496571
...
497572

@@ -509,6 +584,11 @@ def __divmod__(self, other: Self | Scalar) -> tuple[Column, Column]:
509584
Returns
510585
-------
511586
Column
587+
588+
Notes
589+
-----
590+
`other`'s parent DataFrame must be the same as `self`'s - else,
591+
the operation is unsupported and may vary across implementations.
512592
"""
513593
...
514594

0 commit comments

Comments
 (0)