The key here is the name
attribute of the f
object representing the opened file. You get it like that:
>>> f = open('/Users/Desktop/febROSTER2012.xls')
>>> f.name
'/Users/Desktop/febROSTER2012.xls'
Does it help?
More Related Contents:
- Function defined correctly?
- How to do for loop through all items of a list except the first [duplicate]
- Difference between map, applymap and apply methods in Pandas
- How do I create a list of lambdas (in a list comprehension/for loop)?
- How to replace text in a string column of a Pandas dataframe?
- Python glob multiple filetypes
- Pandas dataframe get first row of each group
- Python Socket Receive Large Amount of Data
- How to add multiple values to a dictionary key in python?
- Spark Dataframe distinguish columns with duplicated name
- Unable to load files using pickle and multiple modules
- What does the term “broadcasting” mean in Pandas documentation?
- certificate verify failed: unable to get local issuer certificate
- ImportError: No module named
- Django populate() isn’t reentrant
- Parsing a mix of Backward slash and forward slash in a filename
- What is “pkg-resources==0.0.0” in output of pip freeze command
- How to make Django serve static files with Gunicorn?
- Filter string data based on its string length
- How to get around python requests SSL and proxy error?
- Matplotlib showing x-tick labels overlapping
- How to remove gaps between image subplots
- What is a Pythonic way for Dependency Injection?
- Python, subclassing immutable types
- PyQt GUI order of operations
- Pandas custom function to find whether it is the 1st, 2nd etc Monday, Tuesday, etc – all suggestions welcome
- Understanding NumPy’s Convolve
- Concatenate two numpy arrays in the 4th dimension
- Why do I get “TypeError: not all arguments converted during string formatting” trying to substitute a placeholder like {0} using %?
- pandas.read_csv FileNotFoundError: File b’\xe2\x80\xaa’ despite correct path