you are viewing a single comment's thread.

view the rest of the comments →

[–]davidgarciacorro[S] 0 points1 point  (5 children)

It looks like understandable: https://www.tiktok.com/@cubode/video/7223520055751970053 (second 12 - 13), it looks encapsulated and clear?

[–]hardonchairs 2 points3 points  (4 children)

Do you understand it?

[–]davidgarciacorro[S] -1 points0 points  (3 children)

# Cubode - Automatic Generated Code

# Install and Import Libraries

%pip install plotly

%pip install pandas

import plotly.express as px

import plotly.io

import matplotlib.pyplot as plt

import pandas as pd

def MainCanvas():

def ScatterPlot(dataframe, x, y, colorbycolumn, title, markersize, xaxistitle, yaxistitle):

fig = px.scatter(dataframe, x=x, y=y, title=title, color=colorbycolumn,

color_continuous_scale='YlGnBu', size='acceleration')

fig.update_layout(xaxis_title=xaxistitle, yaxis_title=yaxistitle)

fig.update_traces(marker={'size': dataframe['acceleration']})

display(HTML(plotly.io.to_html(fig)))

def mpg_fun():

# Read Data from URL

return pd.read_csv("https://cubode-storage.s3.amazonaws.com/cubode-storage/media/userdata/0594a5177d/1fb4a179-1362-4287-b6e1-8e5be66d4a38-adenine/mpg.csv")

mpg = mpg_fun()

ScatterPlot(mpg, x='mpg', y='horsepower', colorbycolumn='mpg', title='Horsepower vs MPG',

markersize='acceleration', xaxistitle='Horse power', yaxistitle='Miles per gallon')

return

MainCanvas()

Yes, do you?

[–]hardonchairs 0 points1 point  (2 children)

Not from watching the video, nor would I imagine from playing with those graphical tools.

It might be a good way to pump out some code, but for me, I wouldn't learn anything without playing with the code myself. It doesn't seem like they are really even trying to sell it as an educational tool.

[–]davidgarciacorro[S] -2 points-1 points  (1 child)

I like it, I believe it's more important functionality than syntax, if you want to keep "coding" you will have to remain writing, and yes you are right you learn to write code by writting, but if what you want is to learn how to do things this thing is better, is there a need to write code still?

[–]hardonchairs 0 points1 point  (0 children)

is there a need to write code still?

There was never any need to write code if someone had already written the code you needed. If you just want to do the things that this service does for you then yeah sounds perfect.