Nov-11-2022, 10:36 PM
Hi Team,
I want to extract filename without extension. I know below methods
any other way of getting same output.
expected abc
I want to extract filename without extension. I know below methods
any other way of getting same output.
expected abc
fname = "abc.xlsx" fname = fname.replace(".xlsx","") print(fname) fname = "abc.xlsx" fname = fname.split(".")[0] print(fname)