Questions et réponses pour le dataframe :

A data frame is a tabular data structure. Usually, it contains data where rows are observations and columns are variables of various types. While "data frame" or "dataframe" is the term used for this concept in several languages (R, Apache Spark, deedle, Maple, the pandas library in Python and the DataFrames library in Julia), "table" is the term used in MATLAB and SQL.

3
votes
Je récupère un tableau de Wikipedia en utilisant python. J'ai terminé avec le code, mais j'ai quelques problèmes pour extraire des colonnes spécifiques au format ...

3
votes
Disons que j'ai le pandas DataFrame ci-dessous: A B C D 1 foo one 0 0 3 foo two 4 8 5 bar three 7 14 6 bar four 7 14 Je voudrais sélection ...

3
votes
J'ai un dataframe comme celui-ci: sort_idx = df1['col1'].apply(np.argsort).values for rowidxval, (index, row) in enumerate(df1.iterrows()): df1['col1'][index] = df1['col1'][index][sort_id ...

3
votes
J'ai un DataFrame de la forme eqt_code ACA_FP AC_FP AI_FP BDATE 2015-01-31 5 0.2 NaN 2015-02-28 10 1 3 2015-03-31 NaN NaN ...