Skip to content

Commit 4ff0dd7

Browse files
committed
styling changes
1 parent a8c3b23 commit 4ff0dd7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

dsa-solutions/lc-solutions/2800-2899/2883-Drop-Missing-Data.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,14 @@ Student with id 217 havs empty value in the name column, so it will be removed.
6464

6565
## Solution for Drop Missing Data
6666

67-
</TabItem>
68-
<TabItem value="Python" label="Python">
69-
<SolutionAuthor name="@avdhut-pailwan"/>
70-
7167
```py
7268
import pandas as pd
7369

7470
def dropMissingData(students: pd.DataFrame) -> pd.DataFrame:
7571
return students[students['name'].notnull()]
7672
```
7773

78-
</TabItem>
79-
</Tabs>
80-
81-
#### Complexity Analysis
74+
### Complexity Analysis
8275

8376
- **Time Complexity:** $O(n)$
8477
- **Space Complexity:** $O(n)$
@@ -87,9 +80,6 @@ def dropMissingData(students: pd.DataFrame) -> pd.DataFrame:
8780
- **New DataFrame:** To hold the filtered data, the function builds a new DataFrame. The number of rows with complete "name" values determines the size of this new DataFrame, and in the worst scenario, that number may reach n.
8881
As a result, O(n) is also the space complexity.
8982

90-
</tabItem>
91-
</Tabs>
92-
9383
---
9484

9585
<h2>Authors:</h2>

0 commit comments

Comments
 (0)