mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
Add new intention and a corresponding quick fix for the usage pd.Series.values property from pandas library. ^DS-4878 Fixed Merge-request: IJ-MR-106089 Merged-by: Natalia Murycheva <natalia.murycheva@jetbrains.com> GitOrigin-RevId: 0c8dc40b09ee2d95ecd8ded532f31f5ef4a7740f
12 lines
351 B
Python
12 lines
351 B
Python
import pandas as pd
|
|
# DataFrame columns case
|
|
df = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6], "c": [7, 8, 9]})
|
|
|
|
list(df[['a', 'b']].values)
|
|
bb = ["a", "b", "c"]
|
|
list(df[bb].values)
|
|
|
|
# with errors
|
|
list(df.<error descr="Name expected">[</error>'a'].values)
|
|
|
|
<warning descr="Method Series.to_list() is recommended">list<caret>(df['a'].values)</warning> |