This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Commit d271d0c
committed
feat: implement inplace parameter for drop method
This commit implements the `inplace` parameter for the `DataFrame.drop` method.
When `inplace=True`, the DataFrame is modified in place and the method returns `None`.
When `inplace=False` (the default), a new DataFrame is returned.
Unit tests have been added to verify the functionality for both column and row dropping.1 parent c4efa68 commit d271d0c
2 files changed
+67
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2006 | 2006 | | |
2007 | 2007 | | |
2008 | 2008 | | |
| 2009 | + | |
2009 | 2010 | | |
2010 | 2011 | | |
2011 | 2012 | | |
| |||
2014 | 2015 | | |
2015 | 2016 | | |
2016 | 2017 | | |
| 2018 | + | |
2017 | 2019 | | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
2018 | 2045 | | |
2019 | 2046 | | |
2020 | 2047 | | |
| |||
2056 | 2083 | | |
2057 | 2084 | | |
2058 | 2085 | | |
2059 | | - | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
2060 | 2091 | | |
2061 | 2092 | | |
2062 | 2093 | | |
| |||
2068 | 2099 | | |
2069 | 2100 | | |
2070 | 2101 | | |
2071 | | - | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
2072 | 2108 | | |
2073 | 2109 | | |
2074 | 2110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
132 | 161 | | |
133 | 162 | | |
134 | 163 | | |
| |||
0 commit comments