Skip to content

Commit

Permalink
Remove deprecated raw_column_names
Browse files Browse the repository at this point in the history
  • Loading branch information
aiguofer committed Dec 29, 2021
1 parent 618dee5 commit ea0086f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions gspread_pandas/spread.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
create_merge_cells_request,
create_merge_headers_request,
create_unmerge_cells_request,
deprecate,
fillna,
find_col_indexes,
get_cell_as_tuple,
Expand Down Expand Up @@ -648,7 +647,6 @@ def df_to_sheet(
start=(1, 1),
replace=False,
sheet=None,
raw_column_names=None,
raw_columns=None,
freeze_index=False,
freeze_headers=False,
Expand Down Expand Up @@ -678,10 +676,6 @@ def df_to_sheet(
before saving,
see :meth:`open_sheet <gspread_pandas.spread.Spread.open_sheet>`
(default None)
raw_column_names : list, str
(DEPRECATED use raw_collumns instead) optional, list of columns
from your dataframe that you want interpreted as RAW input in
google sheets.
raw_columns : list, str
optional, list of columns from your dataframe that you want
interpreted as RAW input in google sheets. This can be column
Expand Down Expand Up @@ -737,12 +731,7 @@ def df_to_sheet(
# make sure sheet is large enough
self.sheet.resize(max(sheet_rows, req_rows), max(sheet_cols, req_cols))

if raw_column_names:
deprecate("raw_column_names is deprecated, please use raw_columns instead.")
raw_columns = find_col_indexes(
raw_column_names, header, start[COL] + index_size
)
elif raw_columns:
if raw_columns:
if is_indexes(raw_columns):
offset = index_size + start[COL] - 1
raw_columns = [ix + offset for ix in raw_columns]
Expand Down

0 comments on commit ea0086f

Please sign in to comment.