QST: pyinstaller pandas
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.

- [x] I have asked my usage related question on [StackOverflow](https://stackoverflow.com).

---

#### Question about pandas

**Note**: If you'd still like to submit a question, please read [this guide](
https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your question.

```python
# Your code here, if applicable
File "", line 219, in call_with_frames_removed
File "c:\users\leroy\anaconda3\lib\site-packages_pyinstaller_hooks_contrib\hooks\stdhooks\hook-IPython.py", line 34, in
datas += collect_data_files('IPython.extensions', include_py_files=True)
File "c:\users\leroy\anaconda3\lib\site-packages\PyInstaller\utils\hooks_init.py", line 712, in collect_data_files
pkg_base, pkg_dir = get_package_paths(package)
File "c:\users\leroy\anaconda3\lib\site-packages\PyInstaller\utils\hooks_init_.py", line 506, in get_package_paths
file_attr = get_module_file_attribute(package)
File "c:\users\leroy\anaconda3\lib\site-packages\PyInstaller\utils\hooks_init_.py", line 308, in get_module_file_attribute
raise ImportError('Unable to load module attribute') from e
ImportError: Unable to load module attribute
```
error on the below when compling py file on pyinstaller. command is pyinstaller --noconsole --onefile filename.py

```
python code as per below.
import pandas
import tkinter as tk
from tkinter import filedialog
import os

def analysis():
path = filedialog.askopenfilename()
data = pandas.read_excel(path)
groups = data.groupby('Group')
table = groups.agg({'Revenue':sum, 'Group': len})
savename = filedialog.asksaveasfilename()
savename = savename.split('.')[0] + '.csv'
table.to_csv(savename)

if name == "main":
window = tk.Tk()
window.title('Analysis')
window.geometry("200x150")
frame = tk.Frame(window)
frame.grid(row=0, column=0)
button = tk.Button(frame, text='Generate Table', command=analysis)
button.grid(row=0, column=1)
window.mainloop()
```

full running codes here: https://pastebin.com/0z34GfNW

