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.

1
votes
Pour un bloc de données comme ci-dessous, j'essaie de 1) supprimer la colonne B, car elle n'est pas dans les valeurs des lignes de Marker , 2) puis renommer la colonne A, C, D e ...

5
votes
J'essaye de faire la somme de deux colonnes du DataFrame pour créer une troisième colonne où la valeur de la troisième colonne est égale à la somme des &ea ...

1
votes
J'ai un dataframe comme celui-ci: Name Email Trx Voucher 0 John john.doe@gmail.com 30 not eligible 1 Sarah sarah@gmail.com 7 eligible ...

0
votes
training_data = [ ['Green',3,'Apple'], ['Yellow',3,'Apple'], ['Red',1,'Grape'], ['Red',1,'Grape'], ['Yellow',3,'Lemon'] ] def unique_values(df,col): return set([row[col] ...