When extracting coordinates from python to csv data frame ==

Asked 2 years ago, Updated 2 years ago, 45 views

df=pd.read_csv('business report (2019.12) Samsung Electronics consolidated cash flow statement.csv', encoding = 'euc-kr')

df == 'Net profit for the current period'
C:\Users\kmw07\anaconda3\lib\site-packages\pandas\core\ops\array_ops.py:253: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
  res_values = method(rvalues)

It comes out like this Current profit cells are also marked False. Can you tell me why this is happening?

python pandas

2022-09-20 22:19

1 Answers

df[(unit: 1 million won)"] = df[(unit: 1 million won)"].map(str.strip) When I wrote and executed the code, the white space disappeared I don't know the principle, so can I ask you to interpret the code?


2022-09-20 22:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.