you should use the float option to run on each line.
df[“DAY”].astype(float)
and then you can do regular math on it.
More Related Contents:
- Delete a column from a Pandas DataFrame
- Logical operators for Boolean indexing in Pandas
- pandas get rows which are NOT in other dataframe
- Convert Python dict into a dataframe
- How to join two dataframes for which column values are within a certain range?
- Create multiple dataframes in loop
- What is the most efficient way to loop through dataframes with pandas?
- Pandas read_csv low_memory and dtype options
- Split cell into multiple rows in pandas dataframe
- replace() method not working on Pandas DataFrame
- set difference for pandas
- Nested dictionary to multiindex dataframe where dictionary keys are column labels
- Python pandas: how to specify data types when reading an Excel file?
- Pandas filling missing dates and values within group
- Use groupby in Pandas to count things in one column in comparison to another
- How can I remove all non-numeric characters from all the values in a particular column in pandas dataframe?
- Combining two Series into a DataFrame in pandas
- Rename nested field in spark dataframe
- pandas unique values multiple columns
- How to find which columns contain any NaN value in Pandas dataframe
- Python Pandas Group by date using datetime data
- Converting a column within pandas dataframe from int to string
- Pandas – dataframe groupby – how to get sum of multiple columns
- Mapping ranges of values in pandas dataframe [duplicate]
- pandas: combine two columns in a DataFrame
- Convert month int to month name in Pandas
- Pandas query function not working with spaces in column names
- Multiple condition filter on dataframe
- How to return a “Tuple type” in a UDF in PySpark?
- How to upload a CSV file in FastAPI and convert it into a Pandas Dataframe?