Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created January 29, 2018 11:51
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Fhernd/d65459c2fd30455d56b9944c26a7386f to your computer and use it in GitHub Desktop.
Save Fhernd/d65459c2fd30455d56b9944c26a7386f to your computer and use it in GitHub Desktop.
Guarda datos de un DataFrame en formato CSV en Python.
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)
@katipito72
Copy link

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(

@katipito72
Copy link

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