Wie lösche ich .ds_store -Datei auf dem Mac

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie lösche ich .ds_store -Datei auf dem Mac

by Anonymous » 09 Mar 2025, 13:35

df = pd.read_csv("/Users/georgezambrano/Desktop/Code/Sales_Data/Sales_April_2019.csv")

files = [file for file in os.listdir('/Users/georgezambrano/Desktop/Code/Sales_Data')]

all_months_data = pd.DataFrame()

for file in files:
df = pd.read_csv("/Users/georgezambrano/Desktop/Code/Sales_Data/"+file)
all_months_data = pd.concat([all_months_data, df])

all_months_data.head()
< /code>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 3131: invalid start byte
< /code>
I believe I'm getting the error due to a .ds_store file that shows up when I print the list of files. However, the file .ds_store isn't visible in the folder so I'm really not sure how to delete it.

Top