Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
585 views
in Technique[技术] by (71.8m points)

pandas - Dynamic dataframe transformation in Python

I have a specific problem which I cannot solve it seems. The dataframe is basically a converted list of lists (from a JavaScript object output) to a dataframe which needs to stay in this format (dataframe). It basically looks like this:

col1 col2 col3 col4
1. registry
key1
attribute1 value1 value2 value3
attribute2 value2
2. registry
key2
attribute1 value1
3. registry
key1
attribute3 value4 value5 value6

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...