pandasã®DataFrameã®å¤ãæ´æ°ããæ¹æ³ãããã¤ãããã®ã§ãå¾ã§è¦è¿ãçºã«ãæ´æ°æ¹æ³ãã¾ã¨ãã¦ããã 以ä¸ã®locãwhereã®ä»ã«ä¸æ¬æ´æ°ã®æ¹æ³ãããã DataFrameã®å¤ãæ´æ°ããæ¹æ³ pandasã®DataFrameã®å¤ãæ´æ°ããæ¹æ³ãããã¤ããããã大ãã以ä¸ã®ï¼ã¤ã®æ¹æ³ã«åããããã å¤ãä¸æ¬ä»£å ¥ æ¡ä»¶ã«åè´ããã«ã©ã ãæ´æ° å¥ã®DataFrameã§ä¸æ¸ã åæ¹æ³ã«ã¤ãã¦DataFrameãç¨ããªãã説æããã import pandas as pd data_list1 = [ [1,2,3], [2,3,4], [3,4,5] ] col_list1 = ["c1","c2","c3"] df1 = pd.DataFrame(data=data_list1, columns=col_list1) print(df1) # c1 c2 c3 # 0 1 2 3 #
{{#tags}}- {{label}}
{{/tags}}