The easiest way for the majority of users to install pandas is to install it as part of the Anaconda distribution, a cross
platform distribution for data analysis and scientific computing. This is the recommended installation method for most
users.
I
把dictd = {‘A’:0}转换成DataFrame,
首先,DataFrame的语法格式应为:
import pandas as pd
df = pd.DataFrame({'A':[0]})#'A'是columns,对应的是list
输出:
A
0 0
但是如果是:
df = pd.DataFrame({'A':0})#直接输入dict
会报错
ValueError: If using all scalar values, you must pass an index
解决办