What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-09 10:04:03
python google translate csv
import pandas as pd from google_trans_new import google_translator translator = google_translator() translate_text = translator.translate('Hola mundo!', lang_src='es', lang_tgt='en') df = pd.read_csv('./my_file.csv') translations = [] unique_eleme... Add solution -
Python 2021-10-08 13:20:07
choromap = go.Figure(data=[data], layout = layout)
import pandas as pd import io import plotly.graph_objs as go from plotly.offline import plot # the data is different but it works txt = """ state abv ibu id beer style ounces brewery city 0 AK 25 17 25 25.0 25.0 25... Add solution -
Python 2021-10-07 10:38:06
pandas profiling
//get the latest version of pandas_profiling import numpy as np import pandas as pd import pandas_profiling df1=pd.read_csv(<File path>) profile = df1.profile_report(title="<give any name you want>") profile.to_file(output_file=&qu... Add solution -
Python 2021-10-07 01:48:04
attributeerror 'series' object has no attribute 'reshape' numpy concatenate
#I run in some issues in Predicting the Test set Results from #multiple Linear Regression and I found the problem was that when #I pass the values from pandas Dataframe I didn't pass as numpy #array first data = pd.read_csv('Data.csv') x=np.array(data... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5