我有一个混合数据类型列表,如下所示:list = [['3D prototypes',

'Can print large objects',

'Autodesk Maya/Mudbox',

'3D Studio'],

['We can produce ultra high resolution 3D prints in multiple materials.',

'The quality of our prints beats MakerBot, Form 1, or any other either

powder based or printers using PLA, ABS, Wax or Resin. This printer has

the highest resolution and a very large build size. It prints fully

functional moving parts like a chain or an engine right out of the

printer.',

'The printer is loaded with DurusWhite.',

'Inquire to change the material. There is a $30 surcharge for material

switch.',

"Also please mention your creation's dimensions in mm and if you need

expedite delivery.",

"Printer's Net build size:",

'294 x 192 x 148.6 mm (11.57 x 7.55 x 5.85 in.)',

'The Objet30 features four Rigid Opaque materials and one material that

mimics polypropylene. The Vero family of materials all feature dimensional

stability and high-detail visualization, and are designed to simulate

plastics that closely resemble the end product.',

'PolyJet based printers have a different way of working. These

technologies deliver the highest quality and precision unmatched by the

competition. These type of printers are ideal for professionals, for uses

ranging from casting jewelry to device prototyping.',

'Rigid opaque white (VeroWhitePlus)',

'Rigid opaque black (VeroBlackPlus )',

'Rigid opaque blue (VeroBlue)',

'Rigid opaque gray (VeroGray)',

'Polypropylene-like material (DurusWhite) for snap fit applications'],

'Hub can print invoices',

'postal service',

'Mar 2015',

'Within the hour i',

[u'40.7134', u'-74.0069'],

'4',

['Customer JAMES reviewed Sun, 2015-04-19 05:17: Awesome print!

Good quality, relatively fast shipping, and very responsive to my

questions; would certainly recommend this hub. ',

'Hub XSENIO replied 2 days 16 hours ago: Thanks James! ',

'Customer Sara reviewed Sun, 2015-04-19 00:10: Thank you for going

out of your way to get this to us in time for our shoot. ',

'Hub XSENIO replied 2 days 16 hours ago: Thanks ! ',

'Customer Aaron reviewed Sat, 2015-04-18 02:36: Great service ',

'Hub XSENIO replied 2 days 16 hours ago: Thanks! ',

"Customer Arnoldas reviewed Mon, 2015-03-23 19:47: Xsenio's Hub was

able to produce an excellent quality print , was quick and reliable.

Awesome printing experience! "]]

它的混合数据类型如下所示

^{pr2}$

但当我使用pd.DataFrame(list)

它表明TypeError: Expected list, got str

谁能告诉我这有什么问题吗?是否必须将列表中的所有项从字符串转换为列表?在

谢谢

python列表可以混合类型_如何在Python中将混合数据类型的列表转换为数据帧相关推荐

  1. python指定返回类型_如何在python中指定方法返回类型列表 - python

    假设我有一个类似下面的方法 def validate(self, item:dict, attrs:dict)-> list: 如果我想更具体一点,告诉我我的返回类型是 验证消息? 我应该如何实 ...

  2. python怎么去掉换行符_如何在Python中删除尾部换行符?

    如何在Python中删除尾部换行符? 什么是Perl的chomp函数的Python等价物,如果它是换行符,它会删除字符串的最后一个字符? 26个解决方案 1473 votes 尝试方法lstrip() ...

  3. python 参数个数 同名函数_如何在python中编写不同参数的同名方法

    我在Java背景下学习Python(3.x). 我有一个python程序,我在其中创建一个personObject并将其添加到列表中.p = Person("John") list ...

  4. python中 是什么类型_浅谈python中的变量默认是什么类型

    浅谈python中的变量默认是什么类型 1.type(变量名),输出的结果就是变量的类型: 例如 >>> type(6) 2.在Python里面变量在声明时,不需要指定变量的类型,变 ...

  5. eval在python中是什么意思_如何在Python中使用eval ?

    Python中的 eval是什么? 在Python中,我们有许多内置方法,这些方法对于使Python成为所有人的便捷语言至关重要,而eval是其中一种.eval函数的语法如下: eval(expres ...

  6. python中奇数怎么表示_如何在python输出数据中的奇数

    如何在python输出数据中的奇数 发布时间:2020-07-10 17:08:48 来源:亿速云 阅读:131 这篇文章将为大家详细讲解有关如何在python输出数据中的奇数,文章内容质量较高,因此 ...

  7. python中while语句是_如何在Python中使用while语句[适合初学者]

    while语句是重复循环的语句,那么如何用Python编写,下面Gxl网就带领大家来学习一下Python中使用while语句.[推荐阅读:Python视频教程] 一:什么是while语句?Python ...

  8. python实现随机抽取答题_如何在python中实现随机选择

    这篇文章主要介绍了如何在python中实现随机选择,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下 想从一个序列中随机抽取若干元素,或者想生成几个随机 ...

  9. python如何读取uni文件_如何在Python中通过HTTP与UniProt交谈?

    我试图从UniProt获得一些结果,这是一个蛋白质数据库(细节并不重要).我正在尝试使用一种从一种ID转换为另一种ID的脚本.我能够在浏览器上手动执行此操作,但无法在 Python中执行此操作. 在h ...

最新文章

  1. 一张图看懂中科大、国科大、中科院、社科院、上科大之间的关系
  2. spring + shiro + cas 实现sso单点登录
  3. opencv mat 修改_C++ opencv矩阵和pytorch tensor的互相转换
  4. 辩论计算机未来不能取代书本的问题,电脑不能取代书本辩论会材料.doc
  5. mnesia mysql性能_Mnesia
  6. c++怎么做app_怎么做一款app
  7. ORACLE数据库的备份和还原。
  8. 大数据从入门到就业的四个必备常识
  9. POJ1029 UVA158 Calendar题解
  10. UVALive 5135 Mining Your Own Business 双连通分量
  11. 关于使用 View Binding 不生效的记录
  12. 正确解决:关于Lattic Diamond软件注册不成功(license问题)
  13. 《Netty实战》总结
  14. PhotoshopCS5 第五篇 图层的应用
  15. tcc-transaction源码详解
  16. 联想用u盘重装系统步骤_如何制作U盘系统盘以及U盘安装操作系统的方法
  17. 2014驾考科目二倒车入库技巧
  18. 含有js的英文单词_常用的js单词整理
  19. Cadence中的电路设计
  20. 【基于人脸特征的心率检测研究】非接触式光电容积图和红外人脸视频瞬时心率估计

热门文章

  1. ggbiplot-最好看的PCA作图:样品PCA散点+分组椭圆+变量贡献与相关
  2. 一席-赵立平-大树细菌
  3. QIIME1.9.1-1虚拟机安装配置及挂载外部目录
  4. 根据16S预测微生物群落功能最全攻略
  5. R语言可视化包ggplot2包通过因子变量设置图像颜色实战
  6. R语言日期函数weekdays, months, quarters julian实战(星期几、那个月、那个季度、时间差)
  7. R语言将dataframe数据从宽表变为长表实战(melt函数、pivot_longer函数、gather函数)
  8. TPOT: 自动化的sklearn
  9. c4android资源,OpenC4Android开发环境搭.doc
  10. Linux下测试的c++的使用