pandas统计dataframe中所有负值(negative values)的个数(count total number of negative values in dataframe)
目录
pandas统计dataframe中所有负值(negative values)的个数(count total number of negative values in dataframe)
#pandas统计dataframe中所有负值(negative values)的个数(count total number of negative values in dataframe)
#仿真数据
import pandas as pd
import numpy as np
df = pd.DataFrame({"var1":[-3,4,100,-10]}, index=["test0","train0","test1","train0"])
df