We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e899db commit 1271d61Copy full SHA for 1271d61
pandas/tests/test_categorical.py
@@ -2245,14 +2245,14 @@ def test_empty_astype(self, columns):
2245
2246
def test_construction_series(self):
2247
2248
- l = [1, 2, 3, 1]
2249
- exp = Series(l).astype('category')
2250
- res = Series(l, dtype='category')
+ data = [1, 2, 3, 1]
+ exp = Series(data).astype('category')
+ res = Series(data, dtype='category')
2251
tm.assert_series_equal(res, exp)
2252
2253
- l = ["a", "b", "c", "a"]
2254
2255
+ data = ["a", "b", "c", "a"]
2256
2257
2258
# insert into frame with different index
0 commit comments