📌  相关文章
📜  [已解决] ValueError: If using all scalar values, you must pass an index - Python Code Example

📅  最后修改于: 2022-03-11 14:47:19.857000             🧑  作者: Mango

代码示例1
# import pandas library
import pandas as pd

#define scalar values
a = 1
b = 2
c = 3
d = 4

# creating DataFrame by transforming Scalar Values to List
df = pd.DataFrame({'A': [a], 'B': [b], 'C': [c], 'D': [d]})
print(df)