I have a below function where infile is the parameter of func. Now I want to perform the below operation.
If infile = default, then do, df = pd.read_csv("/path/to/the/file/given/a.csv) else, read the file path given to the infile.
def func(infile):
if infile == default:
df = pd.read_csv("/path/to/the/file/given/a.csv)
else:
df = pd.read_csv(infile)
This approach is working fine
default?