I'm a big fan of exercises, which is why the LernerPython platform includes hundreds of them -- all using my in-browser practice system, which handles Python, Pandas, and Git, along ...
PyArrow dtypes in Python Pandas are nullable (with pd.NA): s is: 0 101 2 30dtype: int64[pyarrow] The dtype is int64, but allows nulls. (Use np.nan? It's turned into pd.NA.)
Learn how to dynamically create rows of QLineEdit widgets in PyQt6 using QGridLayout. This tutorial shows how to add multiple text boxes per row based on user input, such as selecting files from a dialog.
You have a Python Pandas series with ints + NaN. You don't want float forced on you. Solution: Use the "extension" type Int64 (note Initial Caps) and pd.NA: s is: