Skip to content

Commit

Permalink
Fix Deprecation warnings using pandas keys
Browse files Browse the repository at this point in the history
  • Loading branch information
tflidd authored and daavoo committed Nov 23, 2023
1 parent cab0c7f commit 27e0d28
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pyntcloud/io/ply.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,6 @@ def describe_element(name, df):
element.append("property list uchar int vertex_indices")

else:
for i in range(len(df.columns)):
# get first letter of dtype to infer format
f = property_formats[str(df.dtypes[i])[0]]
element.append('property ' + f + ' ' + df.columns.values[i])
element += [f'property {property_formats[str(datatype)[0]]} {name}' for name, datatype in df.dtypes.items()]

return element

0 comments on commit 27e0d28

Please sign in to comment.