22
22
"e" : [13.0 , 12.0 , 1.0 ],
23
23
},
24
24
),
25
- ],
25
+ ]
26
26
)
27
27
def test_groupby_dropna_multi_index_dataframe_nan_in_one_group (
28
28
dropna , tuples , outputs , nulls_fixture
@@ -65,7 +65,7 @@ def test_groupby_dropna_multi_index_dataframe_nan_in_one_group(
65
65
"e" : [12.0 , 13.0 , 1.0 , 1.0 ],
66
66
},
67
67
),
68
- ],
68
+ ]
69
69
)
70
70
def test_groupby_dropna_multi_index_dataframe_nan_in_two_groups (
71
71
dropna , tuples , outputs , nulls_fixture , nulls_fixture2
@@ -105,7 +105,7 @@ def test_groupby_dropna_multi_index_dataframe_nan_in_two_groups(
105
105
"d" : [1.0 , 13.0 , 12.0 ],
106
106
},
107
107
),
108
- ],
108
+ ]
109
109
)
110
110
def test_groupby_dropna_normal_index_dataframe (dropna , idx , outputs ):
111
111
# GH 3729
@@ -132,7 +132,7 @@ def test_groupby_dropna_normal_index_dataframe(dropna, idx, outputs):
132
132
["a" , "a" , "b" , np .nan ],
133
133
pd .Series ([3 , 3 , 3 ], index = ["a" , "b" , np .nan ]),
134
134
),
135
- ],
135
+ ]
136
136
)
137
137
def test_groupby_dropna_series_level (dropna , idx , expected ):
138
138
ser = pd .Series ([1 , 2 , 3 , 3 ], index = idx )
@@ -149,7 +149,7 @@ def test_groupby_dropna_series_level(dropna, idx, expected):
149
149
False ,
150
150
pd .Series ([210.0 , 350.0 , 20.0 ], index = ["a" , "b" , np .nan ], name = "Max Speed" ),
151
151
),
152
- ],
152
+ ]
153
153
)
154
154
def test_groupby_dropna_series_by (dropna , expected ):
155
155
ser = pd .Series (
@@ -176,7 +176,7 @@ def test_groupby_dropna_series_by(dropna, expected):
176
176
pd .DataFrame ({"B" : [2 , 2 , 1 , 1 ]}),
177
177
pd .Series (data = [2 , 2 , 1 , 1 ], name = "B" ),
178
178
),
179
- ],
179
+ ]
180
180
)
181
181
def test_slice_groupby_then_transform (dropna , df_expected , s_expected ):
182
182
# GH35014
@@ -213,7 +213,7 @@ def test_slice_groupby_then_transform(dropna, df_expected, s_expected):
213
213
"e" : [1.0 , 12.0 , 1.0 ],
214
214
},
215
215
),
216
- ],
216
+ ]
217
217
)
218
218
def test_groupby_dropna_multi_index_dataframe_agg (dropna , tuples , outputs ):
219
219
# GH 3729
@@ -244,11 +244,9 @@ def test_groupby_dropna_multi_index_dataframe_agg(dropna, tuples, outputs):
244
244
(pd .Timestamp ("2020-01-01" ), pd .Timestamp ("2020-02-01" )),
245
245
(pd .Timedelta ("-2 days" ), pd .Timedelta ("-1 days" )),
246
246
(pd .Period ("2020-01-01" ), pd .Period ("2020-02-01" )),
247
- ],
248
- )
249
- @pytest .mark .parametrize (
250
- "dropna, values" , [(True , [12 , 3 ]), (False , [12 , 3 , 6 ],)],
247
+ ]
251
248
)
249
+ @pytest .mark .parametrize ("dropna, values" , [(True , [12 , 3 ]), (False , [12 , 3 , 6 ],)])
252
250
def test_groupby_dropna_datetime_like_data (
253
251
dropna , values , datetime1 , datetime2 , unique_nulls_fixture , unique_nulls_fixture2
254
252
):
0 commit comments