Skip to content

Commit

Permalink
Do not pass deprecated copy argument
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed May 18, 2024
1 parent f1f7abc commit 13b491b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plotnine/coords/coord.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def munch_data(data: pd.DataFrame, dist: FloatArray) -> pd.DataFrame:
# not counting the last one
dist[np.isnan(dist)] = 1
extra = np.maximum(np.floor(dist / segment_length), 1)
extra = extra.astype(int, copy=False)
extra = extra.astype(int)

# Generate extra pieces for x and y values
# The final point must be manually inserted at the end
Expand Down
2 changes: 1 addition & 1 deletion plotnine/facets/facet.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def _unique(s: pd.Series[Any]) -> npt.NDArray[Any] | pd.Index:
# preserve the column dtypes
for col in df:
t = df[col].dtype
_df[col] = _df[col].astype(t, copy=False)
_df[col] = _df[col].astype(t)
return _df


Expand Down

0 comments on commit 13b491b

Please sign in to comment.