Skip to content

Commit

Permalink
Apply ruff/pandas-vet rule PD011
Browse files Browse the repository at this point in the history
PD011 Use `.to_numpy()` instead of `.values`
  • Loading branch information
DimitriPapadopoulos committed Aug 12, 2024
1 parent 5901bfc commit bd424af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsspec/implementations/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def open_refs(field, record):
path = self.url.format(field=field, record=record)
data = io.BytesIO(self.fs.cat_file(path))
df = self.pd.read_parquet(data, engine="fastparquet")
refs = {c: df[c].values for c in df.columns}
refs = {c: df[c].to_numpy() for c in df.columns}
return refs

self.open_refs = open_refs
Expand Down

0 comments on commit bd424af

Please sign in to comment.