Код: Выделить всё
FutureWarning: The default value of numeric_only in DataFrame.corr is deprecated. In a future version, it will default to False. Select only valid columns or specify the value of numeric_only to silence this warning.
print(df.corr())
for eg:-
Код: Выделить всё
import pandas as pd
df = pd.read_csv('Data.csv')
print(df.corr())
Код: Выделить всё
FutureWarning: The default value of numeric_only in DataFrame.corr is deprecated. In a future version, it will default to False. Select only valid columns or specify the value of numeric_only to silence this warning.
< /code>
Я частично понимаю ошибку, однако я хотел бы знать: < /p>
Есть ли какие -либо другие альтернативные методы для выполнения той же функции corr () < /code>, чтобы идентифицировать отношения между каждым столбцом в наборе данных? Как способ воспроизвести функцию без использования
corr()
Извините, если мой вопрос неверен или в любом случае, я открыта для отзывов.
Заранее.
Подробнее здесь: https://stackoverflow.com/questions/743 ... das-module