问题描述
如果我显式打开一个连接,然后在同一事务范围内打开另一个连接,则会抛出df = pd.DataFrame({'A' : [0,1,2,3],'B' : ['A','B','C','A']})
print(df.dtypes)
A int64
B object
dtype: object
df.to_excel('file.xlsx'index=False)
df = pd.read_excel('file.xlsx',index_col=None)
print(df.dtypes)
A int64
B object
dtype: object
df = pd.read_excel('file.xlsx',index_col=None,header=None,dtype={0 : 'str',1 : 'str'},skiprows=1)
# skip the header row otherwise all cols will be read as strings.
print(df.dtypes)
0 object
1 object
dtype: object
。
Looking at GitHub在.NET 5中似乎不再支持,所以想知道解决方法是什么。
请参阅下面的最小代表
System.PlatformNotSupportedException: This platform does not support distributed transactions.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)