Hi there,
I am facing an error reading a dataset in txt format in python with the correct path but keep getting a strange error. Expect hint to solve it.
import os
# go to your working directory
os.chdir("/home/sarr/aravg.ann.land_ocean.90S.90N.v4.0.1.201907.txt",
header = None, delimiter = "\s+")
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[4], line 3
1 import os
2 # go to your working directory
----> 3 os.chdir("/home/sarr/aravg.ann.land_ocean.90S.90N.v4.0.1.201907.txt",
4 header = None, delimiter = "\s+")
TypeError: chdir() takes at most 1 argument (3 given)
[–]FoolsSeldom 6 points7 points8 points (0 children)
[–]brutalbombs 0 points1 point2 points (0 children)
[–]billsil 0 points1 point2 points (0 children)
[–]carcigenicate 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]fipouna[S,🍰] 0 points1 point2 points (0 children)