Created
January 29, 2018 11:51
-
-
Save Fhernd/d65459c2fd30455d56b9944c26a7386f to your computer and use it in GitHub Desktop.
Guarda datos de un DataFrame en formato CSV en Python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
# Definición diccionario: | |
diccionario = {'pares': [0, 2, 4, 6], 'impares': [1, 3, 5, 7]} | |
# Creación DataFrame: | |
df_numeros = pd.DataFrame(diccionario) | |
# Guarda datos en CSV: | |
df_numeros.to_csv('numeros.csv', header=False, index=False) |
estoy aprendiendo python con jupiter notebook y me da este mensage c:\Users\oscar\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\linear_model_logistic.py:458: ConvergenceWarning: lbfgs failed to converge (status=1):
STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
Increase the number of iterations (max_iter) or scale the data as shown in:
https://scikit-learn.org/stable/modules/preprocessing.html
Please also refer to the documentation for alternative solver options:
https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
n_iter_i = _check_optimize_result(
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
estoy aprendiendo python con jupiter notebook y me da este mensage c:\Users\oscar\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\linear_model_logistic.py:458: ConvergenceWarning: lbfgs failed to converge (status=1):
STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
Increase the number of iterations (max_iter) or scale the data as shown in:
https://scikit-learn.org/stable/modules/preprocessing.html
Please also refer to the documentation for alternative solver options:
https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
n_iter_i = _check_optimize_result(