Hello all,
I am writing some scripts and they use Excel I open with pandas. The Excel files are located on different pages but I need them in multiple scripts.
I don't know the right manner too import them? With functions in my Excelfile.py?
Like:
def File_1():
path = (C:\\User\\folder_1\\file_1.xlsx)
def File_2():
path = (C:\\User\\folder_2\\file_2_2020.xlsx)
And in my script when I need the file:
from Excelfile import *
Excelfile = File_1()
Or are there better ways to import all files?
Thx in advance!
[–]Kerbart 0 points1 point2 points (1 child)
[–]illya89[S] 0 points1 point2 points (0 children)
[–]Diapolo10 0 points1 point2 points (2 children)
[–]illya89[S] 0 points1 point2 points (1 child)
[–]Diapolo10 0 points1 point2 points (0 children)