26 октября 2022
Luffytaroplease explain
what is the usage of this things?
4 % 3 = 1
4 // 3 = 1
4%3 is the modulus 4//3 is the floor division rounding up the remainder
👾I am trying to solve the exercise provided with each lesson, but how can I check is my soln. correct or which one is the best soln. for the question.
You can post the soln here. If anyone has some tips to improve they will suggest.
id 750768290I am new for python while reading a CSV and targeting a specific cell
import csv
import pandas as pd
df1 = pd.read_csv("data_file.csv")
df2 = df1.iloc[-2:-1 , -2:-1]
df2
i am getting header also as a output how to get only the value of the cell
The header will always show, but any operation you carry out will be directed to the values only.
If you want only the values by force, you can convert it to a numpy array.
Dataframes are like Excel sheets, it needs the header and index to work effectively