Using PyCharm 2021.2 (Community Edition) and Pandas 1.3.1, with the following code:
import pandas as pd
d = {'col1': [1, 2], 'col2': [3, 4]}
df = pd.DataFrame(data=d)
df.to_csv("testfile.csv")
PyCharm will produce a Warning, highlight "testfile.csv", and display "Expected type 'None', got 'str' instead" when hovering over the Warning.
testfile.csv is created and no issues appear to be happening.
Is there a way to fix this? Does anyone know why this Warning appears?
Thanks
