36 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
44
views
FutureWarning in Optuna during TabM hyperparameter tuning causes notebook failure after trials complete on Kaggle GPU
I’m running Optuna to tune hyperparameters for a TabM regression model (10 trials) on Kaggle (GPU: Tesla P100) to minimize RMSE.
The optimization runs fine — all trials complete — but right after ...
2
votes
1
answer
136
views
Pandas: The behavior of value_counts with object-dtype is deprecated - but I don't understand the alternative
I have a Series of datetime objects:
>>> ptest
0 2025年02月02日
1 2025年02月02日
2 2025年03月03日
Name: 0, dtype: datetime64[ns]
that I want to describe as objects (not ints); it works:
>>&...
0
votes
0
answers
107
views
FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas
I have a code below
import geopandas as gpd # used to read the shapfile
import rasterio as rio # used to read the raster (.tif) files
from rasterio.plot import show # used to make plots using ...
0
votes
1
answer
741
views
Pandas - FutureWarning in concat - how to fix or opt into new behavior
I have code like the following where I split up a dataframe into different groups. The "treatment" group is where I might want to delete rows and/or modify rows; and for performance reasons ...
1
vote
1
answer
728
views
Cython and Pandas ChainedAssignmentError Issue: Handling Reference Count Discrepancies
I am using the Cython pip package to speed up the performance of my Pandas operations.
However, I encounter a ChainedAssignmentError due to a discrepancy in reference counts between Cython and ...
1
vote
2
answers
8k
views
FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment in Pandas [closed]
I'm encountering a FutureWarning when trying to fill missing values in the "age" column of my DataFrame with the mean of the column. The warning suggests that the behavior will change in ...
-1
votes
1
answer
231
views
I am trying to fill missing data, and i used the "fillna" function but it returned as an error, please can I be clearified? [duplicate]
/var/folders/d4/4m3wk25x6wq2nmkr7h73pdv00000gn/T/ipykernel_58212/1139554158.py:1: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '...
4
votes
1
answer
6k
views
Pandas concat function giving "FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated"
I have a pandas dataframe that contains a list of stock symbols. I want to loop through this list and call a function that calls an API to get more information about the individual stock symbol. I ...
1
vote
1
answer
2k
views
Problem with pct_change() giving FutureWarning
Im having trouble with pct_change giving a future warning. Heres a snippet of the code Im using:
def movers(df_close, idx, df_close_idx):
# df_close is a timeseries dataframe of prices of many ...
0
votes
1
answer
615
views
How to use pd.to_timedelta with yfinacne download?
I'm running a bit of code to download stock information about various stocks using yfinance. I've been running this simplified bit of code for months now and have recently gotten "FutureWarning&...
1
vote
1
answer
5k
views
Erro "FutureWarning ... dtype incompatible with float64, please explicitly cast to a compatible dtype first"
I updated Python to 3.11.6 from 3.9 and starting to get this error:
**FutureWarning:
Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '1000000' ...
1
vote
1
answer
673
views
Pandas: How to avoid FutureWarning when setting bool value to NaN (missing)?
I want to apply comparison operator to Pandas DataFrame. In case the source data value is missing then my result bool table should contain missing values as well. My code:
>>> pd.__version__
'...
0
votes
0
answers
424
views
FutureWarning Pandas Error for Split Function
I am cleaning my dataset to prepare it for analysis, and I have several lines of code that look like this:
referrals[['First Name','Last Name']] = referrals['Victim'].str.split(' ', 1, expand=True)
...
1
vote
1
answer
2k
views
FutureWarning about encoding from to_excel Pandas
My code:
df.to_excel('sheet.xlsx', encoding='utf-8')
The error message:
FutureWarning: the 'encoding' keyword is deprecated and will be
removed in a future version. Please take steps to stop the use ...
9
votes
3
answers
24k
views
Error while trying to run ```corr()``` in python with pandas module
While trying to run the corr() method in python using pandas module, I get the following error:
FutureWarning: The default value of numeric_only in DataFrame.corr is deprecated. In a future version, ...