()
| 246 | |
| 247 | |
| 248 | def test_meta_duplicated(): |
| 249 | df = pd.DataFrame(columns=["A", "A", "B"]) |
| 250 | res = meta_nonempty(df) |
| 251 | |
| 252 | if PANDAS_GE_300: |
| 253 | o = dd.utils._object |
| 254 | else: |
| 255 | o = "foo" |
| 256 | |
| 257 | exp = pd.DataFrame( |
| 258 | [[o, o, o], [o, o, o]], |
| 259 | index=meta_nonempty(df.index), |
| 260 | columns=["A", "A", "B"], |
| 261 | ) |
| 262 | tm.assert_frame_equal(res, exp) |
| 263 | |
| 264 | |
| 265 | def test_meta_nonempty_empty_categories(): |
nothing calls this directly
no outgoing calls
no test coverage detected