mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 12:34:00 +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
238 B
Python
12 lines
238 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.['a'].values)
|
|
|
|
df['a'].to_list() |