久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何使用 Python Pandas 將 JMP *.jmp 文件讀入 Pandas 數(shù)

How to read JMP *.jmp file with Python Pandas into Pandas dataframe(如何使用 Python Pandas 將 JMP *.jmp 文件讀入 Pandas 數(shù)據(jù)幀)
本文介紹了如何使用 Python Pandas 將 JMP *.jmp 文件讀入 Pandas 數(shù)據(jù)幀的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我很難用 Pandas read_csv<閱讀 SAS JMP 文件/code> 函數(shù)到 Pandas 數(shù)據(jù)幀中.有人對這種類型的數(shù)據(jù)文件有經(jīng)驗嗎?什么是最有效的方法?

I am struggling to read SAS JMP files with Pandas read_csv function into Pandas dataframe. Does anyone have experience with this type of data file? What is the most efficient way?

推薦答案

這對我有用.它的結(jié)果有時有點出乎意料(例如,有時我得到?jīng)]有標題的 CSV,即使在 JMP 中有它們).不幸的是,您需要安裝 SAS JMP,而且此解決方案僅適用于 Windows.

This has worked for me. Its results are sometimes a bit unexpected (for example, sometimes I get CSVs without headers, even though in JMP they have them). Unfortunately, you need to have SAS JMP installed and this solution only works on Windows.

import pandas as pd
from win32com.client import Dispatch

jmp = Dispatch("JMP.Application")
doc = jmp.OpenDocument('sasjmpfile.jmp')
doc.SaveAs('sasjmpfile.csv')

df = pd.read_csv('sasjmpfile.csv')

這篇關(guān)于如何使用 Python Pandas 將 JMP *.jmp 文件讀入 Pandas 數(shù)據(jù)幀的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Extract SAS Stored Process web Service in Python and store it in a Data Frame(在 Python 中提取 SAS 存儲過程 Web 服務(wù)并將其存儲在數(shù)據(jù)框中)
How to calculate Distance between two ZIPs?(如何計算兩個 ZIP 之間的距離?)
Read SAS file with pandas(用 pandas 讀取 SAS 文件)
Reading huge sas dataset in python(在python中讀取巨大的sas數(shù)據(jù)集)
convert a SAS datetime in Pandas(在 Pandas 中轉(zhuǎn)換 SAS 日期時間)
convert numeric sas date to datetime in Pandas(在 Pandas 中將數(shù)字 sas 日期轉(zhuǎn)換為日期時間)
主站蜘蛛池模板: 国产色婷婷久久99精品91 | 欧美日韩久久久 | 日韩1区 | 亚洲 欧美 激情 另类 校园 | 成人在线观看免费 | 亚洲免费高清 | 91精品国产92 | av特级毛片| 一本一道久久a久久精品综合蜜臀 | 久久99精品视频 | 自拍偷拍亚洲欧美 | 国产成人精品免费 | 中文日韩在线视频 | 国产999精品久久久影片官网 | 欧美福利在线 | 国产高清在线精品 | 国产日产精品一区二区三区四区 | 正在播放国产精品 | 亚洲精品免费在线 | 久色网 | 嫩草一区二区三区 | 婷婷丁香在线视频 | 亚洲一区二区三区在线 | 国产片淫级awww | 日本公妇乱淫xxxⅹ 国产在线不卡 | 成人av在线播放 | 新超碰97| 亚洲一区二区三区免费视频 | 精久久久| 国产三区视频在线观看 | 91秦先生艺校小琴 | 91亚洲精选| 免费黄色片在线观看 | 精品综合视频 | 国产精品欧美一区喷水 | 免费在线a视频 | 色吊丝2| 日日日操| 亚洲视频精品 | 日韩在线中文字幕 | 亚洲精品久久久蜜桃网站 |