Skip to content

Commit

Permalink
Specify alternatives for DataFrame.columns and fix copyrights.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Feb 22, 2022
1 parent 68bb602 commit ccb08a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/_internals/where.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021, NVIDIA CORPORATION.
# Copyright (c) 2021-2022, NVIDIA CORPORATION.

import warnings
from typing import Any, Optional, Tuple, Union, cast
Expand Down
6 changes: 5 additions & 1 deletion python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,11 @@ def at(self):
return self.loc

@property # type: ignore
@_external_only_api
@_external_only_api(
"Use _column_names instead, or _data.to_pandas_index() if a pandas "
"index is absolutely necessary. For checking if the columns are a "
"MultiIndex, use _data.multiindex."
)
@annotate("DATAFRAME_COLUMNS_GETTER", color="yellow", domain="cudf_python")
def columns(self):
"""Returns a tuple of columns"""
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/reshape.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018-2021, NVIDIA CORPORATION.
# Copyright (c) 2018-2022, NVIDIA CORPORATION.

import itertools
from typing import Dict, Optional
Expand Down

0 comments on commit ccb08a1

Please sign in to comment.