hola desde hace un tiempo eh tenido este error y no eh podido arreglarlo.
parece ser que el problema es el modulo de prueba, imprimo el dataframe y solo tiene una columna y el índice el numero de índice coincide con el del modulo de prueba ,probe cambiando la forma en que se manejaba la línea 7 en el modulo de prueba y corrió muy bien
Traceback (most recent call last):
File “/home/runner/boilerplate-page-view-time-series-visualizer/test_module.py”, line 7, in test_data_cleaning
actual = int(time_series_visualizer.df.count(numeric_only=True))
File “/home/runner/boilerplate-page-view-time-series-visualizer/.pythonlibs/lib/python3.10/site-packages/pandas/core/series.py”, line 230, in wrapper
raise TypeError(f"cannot convert the series to {converter}")
TypeError: cannot convert the series to <class ‘int’>
You’re on the right track checking if the df is 1 column.
The problem probably isn’t the test, you will never need to edit the test to pass (even if sometimes it seems like that is the case). The tests do require specific formats.
Can you share a link to the replit or copy/paste your code here?