File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ dataframe, you're supposed to make multiple dataframes and `pd.concat()`
1010them instead.
1111
1212Also, Pandas deprecated ` dataframe.append() ` in version 1.4 and
13- intends to remove it in 2.0.
13+ removed it in 2.0.
1414
1515So... helper function? Pandas doesn't have one. Roll your own?
1616Ugh. OK then: here's that helper function. It can append around 1
@@ -73,9 +73,3 @@ These inferred categories will override existing types or a `dtypes=` argument.
7373
7474* Pandas: ` df_new = df.append() # df is not changed `
7575* DF_Appender: ` dfa_new = dfa.append() # modifies dfa, and dfa_new == dfa `
76-
77- ### pandas.DataFrame.append will promote types, while DF_Appender is strict
78-
79- * Pandas: append ` 0.1 ` to an integer column, and the column will be promoted to float
80- * DF_Appender: when initialized with ` dtypes= ` or an existing DataFrame, appending
81- ` 0.1 ` to an integer column causes ` 0.1 ` to be cast to an integer, i.e. ` 0 ` .
You can’t perform that action at this time.
0 commit comments