只有当名称启动p20时,才能通过Python获得数据框架
我有很多数据范围(在上一个脚本中创建)均以P20(名称)开始。它们不能保存在ABY文件夹中,就像脚本中的变量一样。 我需要选择这些数据范围,然后以相同名称转换为Excel。 即
For each dataframe.name like (P20*)
Dataframes.to_excel(dataframe.nale.xlsx)`
我认为我需要使用一些全局功能,但我对此不熟悉。 你能帮我吗? 谢谢
I have a lot dataframes ( created in previous script) all starts with P20 (names). They Are not save in aby folders, just as variables in script.
I need to select those dataframes And convert to excel with same name.
Ie
For each dataframe.name like (P20*)
Dataframes.to_excel(dataframe.nale.xlsx)`
I assume i need to use some global function but i am not familiar with that.
Can you please help me with that?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种方法是使用
os.listdir()
和.startswith()
另一种方法是
glob.glob()
One method is to use
os.listdir()
and.startswith()
Other method is
glob.glob()